03.01.2011, 12:21
if ((newkeys & KEY_JUMP) && !(oldkeys & KEY_JUMP))
((newkeys & KEY_JUMP) checks if the key is pressed
!(oldkeys & KEY_JUMP)) checks that the key isnt being held
((newkeys & KEY_JUMP) checks if the key is pressed
!(oldkeys & KEY_JUMP)) checks that the key isnt being held