3 GB_set_allow_illegal_inputs
Lior Halphon edited this page 2024-12-01 01:09:32 +02:00

Definition

void GB_set_allow_illegal_inputs(GB_gameboy_t *gb, bool allow);

In joypad.h

Description

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.

Thread Safety

GB_set_allow_illegal_inputs is thread-safe and can be called from any thread and context.

Notes

Some commercial games are known to crash when illegal inputs are made.