Ver Fonte

document that text input is on by default

See:
https://discourse.libsdl.org/t/text-input-is-active-by-default-hampering-frame-rate/24396
https://discourse.libsdl.org/t/restoring-text-input-to-the-default-state/42690
Charlie Volow há 1 ano atrás
pai
commit
5ae2ffc127
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      include/SDL3/SDL_keyboard.h

+ 4 - 0
include/SDL3/SDL_keyboard.h

@@ -251,6 +251,8 @@ extern DECLSPEC SDL_Keycode SDLCALL SDL_GetKeyFromName(const char *name);
  * and SDL_TextEditingEvent (SDL_EVENT_TEXT_EDITING) events. Please use this
  * function in pair with SDL_StopTextInput().
  *
+ * Text input events are received by default.
+ *
  * On some platforms using this function activates the screen keyboard.
  *
  * \since This function is available since SDL 3.0.0.
@@ -274,6 +276,8 @@ extern DECLSPEC SDL_bool SDLCALL SDL_TextInputActive(void);
 /**
  * Stop receiving any text input events.
  *
+ * Text input events are received by default.
+ *
  * \since This function is available since SDL 3.0.0.
  *
  * \sa SDL_StartTextInput