mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-29 22:48:30 +00:00
Sync SDL3 wiki -> header
This commit is contained in:
@@ -192,7 +192,8 @@ extern SDL_DECLSPEC void SDLCALL SDL_SetModState(SDL_Keymod modstate);
|
|||||||
* See SDL_Keycode for details.
|
* See SDL_Keycode for details.
|
||||||
*
|
*
|
||||||
* \param scancode the desired SDL_Scancode to query.
|
* \param scancode the desired SDL_Scancode to query.
|
||||||
* \param modstate the modifier state to use when translating the scancode to a keycode.
|
* \param modstate the modifier state to use when translating the scancode to
|
||||||
|
* a keycode.
|
||||||
* \returns the SDL_Keycode that corresponds to the given SDL_Scancode.
|
* \returns the SDL_Keycode that corresponds to the given SDL_Scancode.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 3.0.0.
|
* \since This function is available since SDL 3.0.0.
|
||||||
@@ -209,7 +210,8 @@ extern SDL_DECLSPEC SDL_Keycode SDLCALL SDL_GetDefaultKeyFromScancode(SDL_Scanco
|
|||||||
* See SDL_Keycode for details.
|
* See SDL_Keycode for details.
|
||||||
*
|
*
|
||||||
* \param scancode the desired SDL_Scancode to query.
|
* \param scancode the desired SDL_Scancode to query.
|
||||||
* \param modstate the modifier state to use when translating the scancode to a keycode.
|
* \param modstate the modifier state to use when translating the scancode to
|
||||||
|
* a keycode.
|
||||||
* \returns the SDL_Keycode that corresponds to the given SDL_Scancode.
|
* \returns the SDL_Keycode that corresponds to the given SDL_Scancode.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 3.0.0.
|
* \since This function is available since SDL 3.0.0.
|
||||||
@@ -221,12 +223,15 @@ extern SDL_DECLSPEC SDL_Keycode SDLCALL SDL_GetDefaultKeyFromScancode(SDL_Scanco
|
|||||||
extern SDL_DECLSPEC SDL_Keycode SDLCALL SDL_GetKeyFromScancode(SDL_Scancode scancode, SDL_Keymod modstate);
|
extern SDL_DECLSPEC SDL_Keycode SDLCALL SDL_GetKeyFromScancode(SDL_Scancode scancode, SDL_Keymod modstate);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the scancode corresponding to the given key code according to a default en_US keyboard layout.
|
* Get the scancode corresponding to the given key code according to a default
|
||||||
|
* en_US keyboard layout.
|
||||||
*
|
*
|
||||||
* Note that there may be multiple scancode+modifier states that can generate this keycode, this will just return the first one found.
|
* Note that there may be multiple scancode+modifier states that can generate
|
||||||
|
* this keycode, this will just return the first one found.
|
||||||
*
|
*
|
||||||
* \param key the desired SDL_Keycode to query.
|
* \param key the desired SDL_Keycode to query.
|
||||||
* \param modstate a pointer to the modifier state that would be used when the scancode generates this key, may be NULL.
|
* \param modstate a pointer to the modifier state that would be used when the
|
||||||
|
* scancode generates this key, may be NULL.
|
||||||
* \returns the SDL_Scancode that corresponds to the given SDL_Keycode.
|
* \returns the SDL_Scancode that corresponds to the given SDL_Keycode.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 3.0.0.
|
* \since This function is available since SDL 3.0.0.
|
||||||
@@ -240,10 +245,12 @@ extern SDL_DECLSPEC SDL_Scancode SDLCALL SDL_GetDefaultScancodeFromKey(SDL_Keyco
|
|||||||
* Get the scancode corresponding to the given key code according to the
|
* Get the scancode corresponding to the given key code according to the
|
||||||
* current keyboard layout.
|
* current keyboard layout.
|
||||||
*
|
*
|
||||||
* Note that there may be multiple scancode+modifier states that can generate this keycode, this will just return the first one found.
|
* Note that there may be multiple scancode+modifier states that can generate
|
||||||
|
* this keycode, this will just return the first one found.
|
||||||
*
|
*
|
||||||
* \param key the desired SDL_Keycode to query.
|
* \param key the desired SDL_Keycode to query.
|
||||||
* \param modstate a pointer to the modifier state that would be used when the scancode generates this key, may be NULL.
|
* \param modstate a pointer to the modifier state that would be used when the
|
||||||
|
* scancode generates this key, may be NULL.
|
||||||
* \returns the SDL_Scancode that corresponds to the given SDL_Keycode.
|
* \returns the SDL_Scancode that corresponds to the given SDL_Keycode.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 3.0.0.
|
* \since This function is available since SDL 3.0.0.
|
||||||
@@ -258,7 +265,9 @@ extern SDL_DECLSPEC SDL_Scancode SDLCALL SDL_GetScancodeFromKey(SDL_Keycode key,
|
|||||||
* Set a human-readable name for a scancode.
|
* Set a human-readable name for a scancode.
|
||||||
*
|
*
|
||||||
* \param scancode the desired SDL_Scancode.
|
* \param scancode the desired SDL_Scancode.
|
||||||
* \param name the name to use for the scancode, encoded as UTF-8. The string is not copied, so the pointer given to this function must stay valid while SDL is being used.
|
* \param name the name to use for the scancode, encoded as UTF-8. The string
|
||||||
|
* is not copied, so the pointer given to this function must stay
|
||||||
|
* valid while SDL is being used.
|
||||||
* \returns 0 on success or a negative error code on failure; call
|
* \returns 0 on success or a negative error code on failure; call
|
||||||
* SDL_GetError() for more information.
|
* SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user