all repos — mgba @ 03ca7515b3e79a1d2c34ca93e7d5d1c487820a7a

mGBA Game Boy Advance Emulator

GBA SIO: Add some basic JOY bus constants
Jeffrey Pfau jeffrey@endrift.com
Mon, 26 Dec 2016 22:26:31 -0800
commit

03ca7515b3e79a1d2c34ca93e7d5d1c487820a7a

parent

f7ac90d74eba6bc556b609bb788e5a9d84926968

1 files changed, 10 insertions(+), 0 deletions(-)

jump to
M src/gba/sio.hsrc/gba/sio.h

@@ -23,6 +23,16 @@ enum {

RCNT_INITIAL = 0x8000 }; +enum { + JOY_CMD_RESET = 0xFF, + JOY_CMD_POLL = 0x00, + JOY_CMD_TRANS = 0x14, + JOY_CMD_RECV = 0x15, + + JOYSTAT_TRANS_BIT = 8, + JOYSTAT_RECV_BIT = 2, +}; + struct GBASIODriverSet { struct GBASIODriver* normal; struct GBASIODriver* multiplayer;