Skip to content

GB_set_key_state_for_player

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

Definition

void GB_set_key_state_for_player(GB_gameboy_t *gb, GB_key_t index, unsigned player, bool pressed);

In joypad.h

Description

For use with Super Game Boy games that support multiplayer. Sets the state for player's button index to value pressed (true means down, false means released).

Thread Safety

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

See Also

Clone this wiki locally