Go to the documentation of this file.
47 #if !defined(__LYNX__)
48 # error This module may only be used when compiling for the Lynx game console!
52 #define JOY_UP_MASK 0x80
53 #define JOY_DOWN_MASK 0x40
54 #define JOY_LEFT_MASK 0x20
55 #define JOY_RIGHT_MASK 0x10
56 #define JOY_BTN_1_MASK 0x01
57 #define JOY_BTN_2_MASK 0x02
59 #define JOY_BTN_A_MASK JOY_BTN_1_MASK
60 #define JOY_BTN_B_MASK JOY_BTN_2_MASK
62 #define JOY_BTN_A(v) ((v) & JOY_BTN_A_MASK)
63 #define JOY_BTN_B(v) ((v) & JOY_BTN_B_MASK)
67 #define MIKEY (*(volatile struct __mikey *)0xFD00)
69 #define _MIKEY_TIMERS (*(volatile struct _mikey_all_timers *) 0xFD00)
70 #define _HBL_TIMER (*(volatile struct _mikey_timer *) 0xFD00)
71 #define _VBL_TIMER (*(volatile struct _mikey_timer *) 0xFD08)
72 #define _UART_TIMER (*(volatile struct _mikey_timer *) 0xFD14)
73 #define _VIDDMA (*(volatile unsigned int *) 0xFD92)
76 #define SUZY (*(volatile struct __suzy*)0xFC00)