01.03.2017, 13:38
PHP код:
// HOLDING(keys)
#define HOLDING(%0) \
((newkeys & (%0)) == (%0))
// PRESSING(keyVariable, keys)
#define PRESSING(%0,%1) \
(%0 & (%1))
PHP код:
if(HOLDING(KEY_SPRINT) || PRESSING(newkeys, KEY_SPRINT ))
{
(assim vocк deteta quando ele corre)
}