]> git.sur5r.net Git - cc65/blobdiff - include/cbm.h
joy: refactor generic joy_masks array indices and macros
[cc65] / include / cbm.h
index 226a09793d5348d1e7e3f703e941a04b32613c40..27e82f9f3b303eb17e527fd3be77ddfb22b68e08 100644 (file)
 
 
 
+/* Expanding upon joystick.h */
+#define JOY_FIRE_IDX            4
+
+#define JOY_FIRE(v)             ((v) & joy_masks[JOY_FIRE_IDX])
+
+
+
 /*****************************************************************************/
 /*                                 Variables                                 */
 /*****************************************************************************/