-
-
Notifications
You must be signed in to change notification settings - Fork 217
GB_set_allow_illegal_inputs
Lior Halphon edited this page Nov 30, 2024
·
3 revisions
void GB_set_allow_illegal_inputs(GB_gameboy_t *gb, bool allow);
In joypad.h
Super Game Boy and Game Boy Player forbid pressing opposing directional buttons (Up + Down or Left + Right) together via software, while other models have their shells physically built to make such button combinations impossible. By default, trying to input these illegal combinations will cause the emulator instance to drop one of the inputs. Use this function to disable this behavior.
GB_set_allow_illegal_inputs
is thread-safe and can be called from any thread and context.
Some commercial games are known to crash when illegal inputs are made.