Mouse Key

Topics regarding Scripting with Reality Factory
Post Reply
Masta_J
Posts: 37
Joined: Tue Apr 17, 2007 1:35 pm
Location: Johannesburg South Africa

Mouse Key

Post by Masta_J »

Sup guys, was wondering if anyone knows the numerical value for left and right mouse keys. I have all of the keyboard values.
Thanks
A good warrior knows his limits, but a great warrior finds his way around them.
User avatar
Juutis
Posts: 1511
Joined: Thu Jan 12, 2006 12:46 pm
Location: Finland

Post by Juutis »

self.lbutton_pressed and self.rbutton_pressed return if the mouse keys are pressed.

You can also check the numbers for each key with self.key_pressed. Just make sure you have console enabled and then use debug(self.key_pressed) and it should show you the numerical value for the key in the console.
Pain is only psychological.
Post Reply