4 GB_set_key_state_for_player
Lior Halphon edited this page 2024-12-01 01:09:32 +02:00

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