26.06.2016, 19:26
Код:
#define PRESSED(%0) \ (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
Код:
if(PRESSED(KEY_SECONDARY_ATTACK))
Код:
if(newkeys & KEY_SECONDARY_ATTACK)
#define PRESSED(%0) \ (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
if(PRESSED(KEY_SECONDARY_ATTACK))
if(newkeys & KEY_SECONDARY_ATTACK)