Skip to content

GB_set_emulate_joypad_bouncing

Lior Halphon edited this page Nov 30, 2024 · 3 revisions

Definition

void GB_set_emulate_joypad_bouncing(GB_gameboy_t *gb, bool emulate);

In joypad.h

Description

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.

Thread Safety

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

Notes

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.

Clone this wiki locally