aboutsummaryrefslogtreecommitdiffstats
path: root/constants/input_constants.asm
diff options
context:
space:
mode:
authordannye <33dannye@gmail.com>2020-11-04 00:06:44 -0600
committerdannye <33dannye@gmail.com>2020-11-04 00:06:44 -0600
commit5647ca687b92954dcf37a6ea6bfbc9a341c32de4 (patch)
treedde1937a1bfdb3a835f4155e1c2eb8f1aaf86f63 /constants/input_constants.asm
parentMerge pull request #55 from Deokishisu/patch-1 (diff)
downloadpokeyellow-5647ca687b92954dcf37a6ea6bfbc9a341c32de4.tar.gz
pokeyellow-5647ca687b92954dcf37a6ea6bfbc9a341c32de4.tar.xz
pokeyellow-5647ca687b92954dcf37a6ea6bfbc9a341c32de4.zip
Sync with pokered
Diffstat (limited to 'constants/input_constants.asm')
-rw-r--r--constants/input_constants.asm20
1 files changed, 20 insertions, 0 deletions
diff --git a/constants/input_constants.asm b/constants/input_constants.asm
new file mode 100644
index 00000000..7984d5a9
--- /dev/null
+++ b/constants/input_constants.asm
@@ -0,0 +1,20 @@
+; joypad buttons
+ const_def
+ const BIT_A_BUTTON
+ const BIT_B_BUTTON
+ const BIT_SELECT
+ const BIT_START
+ const BIT_D_RIGHT
+ const BIT_D_LEFT
+ const BIT_D_UP
+ const BIT_D_DOWN
+
+NO_INPUT EQU 0
+A_BUTTON EQU 1 << BIT_A_BUTTON
+B_BUTTON EQU 1 << BIT_B_BUTTON
+SELECT EQU 1 << BIT_SELECT
+START EQU 1 << BIT_START
+D_RIGHT EQU 1 << BIT_D_RIGHT
+D_LEFT EQU 1 << BIT_D_LEFT
+D_UP EQU 1 << BIT_D_UP
+D_DOWN EQU 1 << BIT_D_DOWN