summaryrefslogtreecommitdiff
path: root/constants/misc_constants.asm
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@gmail.com>2015-11-16 16:01:45 -0500
committerPikalaxALT <PikalaxALT@gmail.com>2015-11-16 16:46:32 -0500
commit435b0cf686e55bbe60acbce1e6154b0c2450bbac (patch)
tree23375ad339f07ed9bc5a2a1be7eb98f414e44ea8 /constants/misc_constants.asm
parent4b5424368f09ff83bfdd2454a4fd06985f5ff54d (diff)
Options menu, some mobile fns
Diffstat (limited to 'constants/misc_constants.asm')
-rw-r--r--constants/misc_constants.asm26
1 files changed, 18 insertions, 8 deletions
diff --git a/constants/misc_constants.asm b/constants/misc_constants.asm
index 4991daf0a..cc0257cfb 100644
--- a/constants/misc_constants.asm
+++ b/constants/misc_constants.asm
@@ -46,15 +46,25 @@ CHECK_FLAG EQU 2
; 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 %00000001
-B_BUTTON EQU %00000010
-SELECT EQU %00000100
-START EQU %00001000
-D_RIGHT EQU %00010000
-D_LEFT EQU %00100000
-D_UP EQU %01000000
-D_DOWN EQU %10000000
+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