kbeckmann/game-and-watch-retro-go

Have GW take joystick as input

BrianPugh opened this issue · 1 comments

Currently, all other emu's use the joystick abstraction as an input; GW does not. This leads to a small bug where when macros are used, the underlying keypresses are still being sent to the emulator because GW directly reads buttons.

bzhxx commented

we can change it in main_gw.c.

/* callback to get buttons state */
.
The emulator is calling gw_get_buttons() everytime the rom program reads inputs.
We just need to replace buttons_get() by an operation to convert joystick state in original buttons value.