summaryrefslogtreecommitdiff
path: root/constants/misc_constants.asm
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2018-06-02 21:26:20 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2018-06-02 21:26:20 -0400
commit04883f4bf9fa6c0bf935f1aac95d5d48abe3bb30 (patch)
tree3ff95e7bbb62d0decfb9e2cba9e3d54f61013706 /constants/misc_constants.asm
parent956d010d59ad225bea768aec172ccb56977b1775 (diff)
parent5fb7140613d6ea00ec1964fde18418c6257c2e27 (diff)
Merge branch 'master' into build_more_roms
Diffstat (limited to 'constants/misc_constants.asm')
-rw-r--r--constants/misc_constants.asm24
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