joy: refactor generic joy_masks array indices and macros
This commit is contained in:
@@ -75,6 +75,13 @@
|
||||
|
||||
|
||||
|
||||
/* Expanding upon joystick.h */
|
||||
#define JOY_FIRE_IDX 4
|
||||
|
||||
#define JOY_FIRE(v) ((v) & joy_masks[JOY_FIRE_IDX])
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Variables */
|
||||
/*****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user