+/* Masks for joy_read */
+#define JOY_UP_MASK 0x08
+#define JOY_DOWN_MASK 0x04
+#define JOY_LEFT_MASK 0x02
+#define JOY_RIGHT_MASK 0x01
+#define JOY_BTN_1_MASK 0x20
+#define JOY_BTN_2_MASK 0x10
+#define JOY_BTN_3_MASK 0x80
+#define JOY_BTN_4_MASK 0x40