3 GB_set_key_state
Lior Halphon edited this page 2024-11-28 23:01:33 +02:00

Definition

void GB_set_key_state(GB_gameboy_t *gb, GB_key_t index, bool pressed);

In joypad.h

Description

Sets the state for player 1's button index to value pressed (true means down, false means released).

Thread Safety

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

See Also