mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-05 15:03:43 +00:00
Add SDL_HINT_MOUSE_RELATIVE_CLIP_INTERVAL (#10085)
This commit is contained in:
parent
0280d8249a
commit
3b504c4a89
4 changed files with 33 additions and 2 deletions
|
@ -2337,6 +2337,19 @@ extern "C" {
|
|||
*/
|
||||
#define SDL_HINT_MOUSE_RELATIVE_CURSOR_VISIBLE "SDL_MOUSE_RELATIVE_CURSOR_VISIBLE"
|
||||
|
||||
/**
|
||||
* Controls how often SDL issues cursor confinement commands to the operating
|
||||
* system while relative mode is active, in case the desired confinement state
|
||||
* became out-of-sync due to interference from other running programs.
|
||||
*
|
||||
* The variable can be integers representing miliseconds between each refresh.
|
||||
* A value of zero means SDL will not automatically refresh the confinement.
|
||||
* The default value varies depending on the operating system, this variable
|
||||
* might not have any effects on inapplicable platforms such as those without
|
||||
* a cursor.
|
||||
*/
|
||||
#define SDL_HINT_MOUSE_RELATIVE_CLIP_INTERVAL "SDL_MOUSE_RELATIVE_CLIP_INTERVAL"
|
||||
|
||||
/**
|
||||
* A variable controlling whether mouse events should generate synthetic touch
|
||||
* events.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue