diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2019-04-23 14:46:20 -0400 |
---|---|---|
committer | huderlem <huderlem@gmail.com> | 2019-04-23 19:58:51 -0500 |
commit | d00b5ae39967795720b24b3700c230f87d4454e8 (patch) | |
tree | ea8f9d464ff47120639a8f94b05f20a92a42247d /include/global.h | |
parent | 900a1d32c1926264bd612f55972d9da37b363411 (diff) |
match sub_809C464
Diffstat (limited to 'include/global.h')
-rw-r--r-- | include/global.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/global.h b/include/global.h index 374701930..d64cf987d 100644 --- a/include/global.h +++ b/include/global.h @@ -112,6 +112,11 @@ enum LanguageId #define BAG_TMHM_COUNT 64 #define BAG_BERRIES_COUNT 46 +#define TEST_BUTTON(value, button) ({(value) & (button);}) +#define JOY_NEW(button) (TEST_BUTTON(gMain.newKeys, button)) +#define JOY_HELD(button) (TEST_BUTTON(gMain.heldKeys, button)) +#define JOY_REPT(button) (TEST_BUTTON(gMain.newAndRepeatedKeys, button)) + enum { MALE, |