diff options
Diffstat (limited to 'constants/misc_constants.asm')
-rw-r--r-- | constants/misc_constants.asm | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/constants/misc_constants.asm b/constants/misc_constants.asm new file mode 100644 index 0000000..d01de98 --- /dev/null +++ b/constants/misc_constants.asm @@ -0,0 +1,24 @@ +; joypad + + const_def + const A_BUTTON_F + const B_BUTTON_F + const SELECT_F + const START_F + const D_RIGHT_F + const D_LEFT_F + const D_UP_F + const D_DOWN_F + +NO_INPUT EQU %00000000 +A_BUTTON EQU 1 << A_BUTTON_F +B_BUTTON EQU 1 << B_BUTTON_F +SELECT EQU 1 << SELECT_F +START EQU 1 << START_F +D_RIGHT EQU 1 << D_RIGHT_F +D_LEFT EQU 1 << D_LEFT_F +D_UP EQU 1 << D_UP_F +D_DOWN EQU 1 << D_DOWN_F + +BUTTONS EQU A_BUTTON | B_BUTTON | SELECT | START +D_PAD EQU D_RIGHT | D_LEFT | D_UP | D_DOWN |