From 5f1a47c078b24098cf42be24d455d545de0c6912 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Sat, 30 Nov 2024 22:01:31 +0200 Subject: [PATCH] Updated GB_set_update_input_hint_callback (markdown) --- GB_set_update_input_hint_callback.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/GB_set_update_input_hint_callback.md b/GB_set_update_input_hint_callback.md index c118989..d602e23 100644 --- a/GB_set_update_input_hint_callback.md +++ b/GB_set_update_input_hint_callback.md @@ -4,14 +4,21 @@ 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); +void GB_set_update_input_hint_callback([[GB_gameboy_t]] *gb, GB_update_input_hint_callback_t callback); In `joypad.h` ## Description -TBD +Set the input hint callback of an emulator instance. This optional callback is called when its "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. ## Thread Safety 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). + +## See Also + +* [[GB_set_key_state]] +* [[GB_set_key_mask]] +* [[GB_set_key_state_for_player]] +* [[GB_set_key_mask_for_player]] \ No newline at end of file