mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-01 22:42:56 +00:00
Added a hint SDL_HINT_MOUSE_RELATIVE_SYSTEM_SCALE to control whether to use system mouse acceleration on raw relative motion.
This is currently only implemented on Windows, and "Enhanced pointer precision" mode is not quite correct.
This commit is contained in:
@@ -1106,6 +1106,17 @@ extern "C" {
|
||||
*/
|
||||
#define SDL_HINT_MOUSE_RELATIVE_SPEED_SCALE "SDL_MOUSE_RELATIVE_SPEED_SCALE"
|
||||
|
||||
/**
|
||||
* \brief A variable controlling whether the system mouse acceleration curve is used for relative mouse motion.
|
||||
*
|
||||
* This variable can be set to the following values:
|
||||
* "0" - Relative mouse motion will be unscaled (the default)
|
||||
* "1" - Relative mouse motion will be scaled using the system mouse acceleration curve.
|
||||
*
|
||||
* If SDL_HINT_MOUSE_RELATIVE_SPEED_SCALE is set, that will override the system speed scale.
|
||||
*/
|
||||
#define SDL_HINT_MOUSE_RELATIVE_SYSTEM_SCALE "SDL_MOUSE_RELATIVE_SYSTEM_SCALE"
|
||||
|
||||
/**
|
||||
* \brief A variable controlling whether a motion event should be generated for mouse warping in relative mode.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user