Skip to content

GB_set_key_state

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

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

Clone this wiki locally