Updated GB_set_emulate_joypad_bouncing (markdown)

Lior Halphon 2024-11-30 21:57:40 +02:00
parent 9acd467620
commit 8370a02700
1 changed files with 9 additions and 1 deletions

@ -6,8 +6,16 @@ In `joypad.h`
## Description
TBD
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 functions 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|GB_model_t]]. Super Game Boy and Game Boy Player models never emulate joypad bouncing.
Despite the bouncing pattern being pseudo random, it's completely deterministic and reproducable.