-
-
Notifications
You must be signed in to change notification settings - Fork 216
GB_set_emulate_joypad_bouncing
Lior Halphon edited this page Nov 30, 2024
·
3 revisions
void GB_set_emulate_joypad_bouncing(GB_gameboy_t *gb, bool emulate);
In joypad.h
The physical buttons of various Game Boy models suffer from button bouncing, and do not instantly transition from a released state to a pressed one, and vice versa. This function controls whether or not this physical behavior should be emulated by software.
By default, button bouncing is emulated.
GB_set_emulate_joypad_bouncing
is thread-safe and can be called from any thread and context.
The time it takes for a bouncing button to stabilize depends on the currently emulated model. Super Game Boy and Game Boy Player models never emulate joypad bouncing.
Despite the bouncing pattern being pseudo-random, it's completely deterministic and reproducible.