Sync wiki -> SDL2.
This commit is contained in:
parent
e69d0e516b
commit
623a83f2b5
3 changed files with 14 additions and 14 deletions
|
@ -527,8 +527,8 @@ extern DECLSPEC const char * SDLCALL SDL_GameControllerGetSerial(SDL_GameControl
|
||||||
/**
|
/**
|
||||||
* Get the Steam Input handle of an opened controller, if available.
|
* Get the Steam Input handle of an opened controller, if available.
|
||||||
*
|
*
|
||||||
* Returns an InputHandle_t for the controller that can be used with Steam Input API:
|
* Returns an InputHandle_t for the controller that can be used with Steam
|
||||||
* https://partner.steamgames.com/doc/api/ISteamInput
|
* Input API: https://partner.steamgames.com/doc/api/ISteamInput
|
||||||
*
|
*
|
||||||
* \param gamecontroller the game controller object to query.
|
* \param gamecontroller the game controller object to query.
|
||||||
* \returns the gamepad handle, or 0 if unavailable.
|
* \returns the gamepad handle, or 0 if unavailable.
|
||||||
|
@ -704,13 +704,12 @@ SDL_GameControllerHasAxis(SDL_GameController *gamecontroller, SDL_GameController
|
||||||
*
|
*
|
||||||
* The axis indices start at index 0.
|
* The axis indices start at index 0.
|
||||||
*
|
*
|
||||||
* For thumbsticks, the state is a value ranging from -32768 (up/left)
|
* For thumbsticks, the state is a value ranging from -32768 (up/left) to
|
||||||
* to 32767 (down/right).
|
* 32767 (down/right).
|
||||||
*
|
*
|
||||||
* Triggers range from 0 when released to 32767 when fully pressed, and
|
* Triggers range from 0 when released to 32767 when fully pressed, and never
|
||||||
* never return a negative value. Note that this differs from the value
|
* return a negative value. Note that this differs from the value reported by
|
||||||
* reported by the lower-level SDL_GetJoystickAxis(), which normally uses
|
* the lower-level SDL_GetJoystickAxis(), which normally uses the full range.
|
||||||
* the full range.
|
|
||||||
*
|
*
|
||||||
* \param gamecontroller a game controller
|
* \param gamecontroller a game controller
|
||||||
* \param axis an axis index (one of the SDL_GameControllerAxis values)
|
* \param axis an axis index (one of the SDL_GameControllerAxis values)
|
||||||
|
|
|
@ -298,9 +298,10 @@ extern DECLSPEC void SDLCALL SDL_ClearComposition(void);
|
||||||
extern DECLSPEC SDL_bool SDLCALL SDL_IsTextInputShown(void);
|
extern DECLSPEC SDL_bool SDLCALL SDL_IsTextInputShown(void);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the rectangle used to type Unicode text inputs. Native input methods
|
* Set the rectangle used to type Unicode text inputs.
|
||||||
* will place a window with word suggestions near it, without covering the
|
*
|
||||||
* text being inputted.
|
* Native input methods will place a window with word suggestions near it,
|
||||||
|
* without covering the text being inputted.
|
||||||
*
|
*
|
||||||
* To start text input in a given location, this function is intended to be
|
* To start text input in a given location, this function is intended to be
|
||||||
* called before SDL_StartTextInput, although some platforms support moving
|
* called before SDL_StartTextInput, although some platforms support moving
|
||||||
|
|
|
@ -1347,8 +1347,8 @@ extern DECLSPEC int SDLCALL SDL_UpdateWindowSurface(SDL_Window * window);
|
||||||
*
|
*
|
||||||
* Note that this function will update _at least_ the rectangles specified,
|
* Note that this function will update _at least_ the rectangles specified,
|
||||||
* but this is only intended as an optimization; in practice, this might
|
* but this is only intended as an optimization; in practice, this might
|
||||||
* update more of the screen (or all of the screen!), depending on what
|
* update more of the screen (or all of the screen!), depending on what method
|
||||||
* method SDL uses to send pixels to the system.
|
* SDL uses to send pixels to the system.
|
||||||
*
|
*
|
||||||
* \param window the window to update
|
* \param window the window to update
|
||||||
* \param rects an array of SDL_Rect structures representing areas of the
|
* \param rects an array of SDL_Rect structures representing areas of the
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue