SDL Wiki
[ front page | index | search | recent changes | git repo | offline html ]

SDL_HINT_TEXTINPUT_KEYBOARD_MARGIN

A variable controlling the spacing between the on-screen keyboard and text input areas.

Header File

Defined in <SDL3/SDL_hints.h>

Syntax

#define SDL_HINT_TEXTINPUT_KEYBOARD_MARGIN "SDL_TEXTINPUT_KEYBOARD_MARGIN"

Remarks

This is the space, in window coordinates, to keep between the bottom of the text input area and the top of the on-screen keyboard when the view is moved to keep the text input area visible. This defaults to 0.

This hint sets the default value of SDL_PROP_TEXTINPUT_KEYBOARD_MARGIN_NUMBER.

This hint should be set before calling SDL_StartTextInput() or SDL_StartTextInputWithProperties().

Version

This hint is available since SDL 3.6.0.


CategoryAPI, CategoryAPIMacro, CategoryHints


[ edit | delete | history | feedback | raw ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.