-
-
Notifications
You must be signed in to change notification settings - Fork 212
GB_set_update_input_hint_callback
Lior Halphon edited this page Nov 30, 2024
·
3 revisions
typedef void (*GB_update_input_hint_callback_t)(GB_gameboy_t *gb);
void GB_set_update_input_hint_callback(GB_gameboy_t *gb, GB_update_input_hint_callback_t callback);
In joypad.h
Set the input hint callback of an emulator instance. This optional callback is called when it's "ideal" for a frontend to call GB_set_key_state, etc. Frontends that use polling for user inputs can poll in this callback to minimize input lag.
If callback
is not NULL, GB_set_update_input_hint_callback
is thread-safe and can be called from any thread and context. Otherwise, it must not be called if the instance is being run in another thread, but may be called from the current one (via a callback).