]> git.sur5r.net Git - cc65/blobdiff - include/nes.h
nes: Expose and document all joypad keys
[cc65] / include / nes.h
index 3ad4422809a9eb05072b41329d4587fb04323733..fd762a09a35c60ee9800ab26bc529f429baedf19 100644 (file)
 /* No support for dynamically loadable drivers */
 #define DYN_DRV         0
 
+/* The joystick keys - all keys are supported */
+#define KEY_UP         0x10
+#define KEY_DOWN       0x20
+#define KEY_LEFT       0x40
+#define KEY_RIGHT      0x80
+#define KEY_A          0x1
+#define KEY_B          0x2
+#define KEY_SELECT     0x4
+#define KEY_START      0x8
 
 
 /* The addresses of the static drivers */