Paper Mario DX
Paper Mario (N64) modding
Loading...
Searching...
No Matches
IsAOrBPressed.inc.c
Go to the documentation of this file.
1
#include "common.h"
2
3
API_CALLABLE(N(IsAOrBPressed)) {
4
script->varTable[0] = FALSE;
5
if
(
gGameStatusPtr
->
pressedButtons
[0] &
BUTTON_A
) {
6
script->varTable[0] = TRUE;
7
}
8
if
(
gGameStatusPtr
->
pressedButtons
[0] &
BUTTON_B
) {
9
script->varTable[0] = TRUE;
10
}
11
return
ApiStatus_DONE2
;
12
}
GameStatus::pressedButtons
u32 pressedButtons[4]
Definition
common_structs.h:1382
BUTTON_A
@ BUTTON_A
Definition
enums.h:2790
BUTTON_B
@ BUTTON_B
Definition
enums.h:2789
ApiStatus_DONE2
#define ApiStatus_DONE2
Definition
evt.h:118
gGameStatusPtr
GameStatus * gGameStatusPtr
Definition
main_loop.c:32
src
common
IsAOrBPressed.inc.c
Generated by
1.10.0