[HELP] hold and press a key at the same time
#5

Quote:
Originally Posted by NaS
Посмотреть сообщение
Код:
if((newkeys & KEY_HANDBRAKE) && !(oldkeys & KEY_HANDBRAKE) && (newkeys & KEY_ACTION))
This will react only if KEY_HANDBRAKE is pressed but wasn't pressed before and KEY_ACTION is already pressed.
I fixed it, the problem was that
another "if(KeyPressed(KEY_HANDBRAKE))" was placed before "if(KeyHeld(KEY_ACTION) && KeyPressed(KEY_HANDBRAKE))"

Thanks ****** & THANKS Nas!
Reply


Messages In This Thread
[HELP] hold and press a key at the same time - by CobraWoW - 12.03.2019, 23:25
Re: [HELP] hold and press a key at the same time - by CobraWoW - 12.03.2019, 23:56
Re: [HELP] hold and press a key at the same time - by CobraWoW - 13.03.2019, 00:34
Re: [HELP] hold and press a key at the same time - by NaS - 13.03.2019, 05:39
Re: [HELP] hold and press a key at the same time - by CobraWoW - 13.03.2019, 09:06

Forum Jump:


Users browsing this thread: 1 Guest(s)