|
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
|
06-23-2008 12:23
ive been trying to wrap my head around this for a wile, saposably there is a way to use shift for diffrent combinations of arrows keys and shift. is this really posible. one of my friends said he was able to do it using binary and integers some how to detect it can anyone enlighten me on this  ?
|
|
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
|
06-23-2008 13:42
Kinda. CONTROL_LEFT and CONTROL_RIGHT (a.k.a. "strafing" left and right) are generated with the shift-left and shift-right arrow keys. (The unshifted left and right arrow keys generate CONTROL_ROT_LEFT and CONTROL_ROT_RIGHT.) Of course the controls pressed and released are delivered in a bitvector integer. Could this be what he was talking about?
_____________________
Archived for Your Protection
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
06-23-2008 16:26
Sounds like it. And remember that in mouselook that's reversed: unshifted left and right controls generate CONTROL_LEFT and CONTROL_RIGHT, and shifted left and right controls generate CONTROL_ROT_LEFT and CONTROL_ROT_RIGHT.
|