Pressing and releasing UD and LR
#1

How do I check when I release for example the 'W' key (forward or any of the buttons that orientates you?

I tried the GetPlayerKeys example, but can't seem to make it work, also tried the KEY_UP/DOWN/LEFT/RIGHT definitons. Didn't work, I tried them with PRESSED and RELEASED macro, same thing, doesn't detect them. Any ideas?


My code.
pawn Код:
if(PRESSED(KEY_UP | KEY_DOWN | KEY_LEFT | KEY_RIGHT)) Pressed
else if(RELEASED(KEY_UP | KEY_DOWN | KEY_LEFT | KEY_RIGHT)) Released
If I use another key, like KEY_ACTION or KEY_CROUCH, it works.
Reply


Messages In This Thread
Pressing and releasing UD and LR - by Zh3r0 - 19.06.2011, 22:17
Re: Pressing and releasing UD and LR - by PrawkC - 19.06.2011, 23:23
Re: Pressing and releasing UD and LR - by Calgon - 20.06.2011, 05:41
Re: Pressing and releasing UD and LR - by Zh3r0 - 20.06.2011, 10:15

Forum Jump:


Users browsing this thread: 1 Guest(s)