Removed SDL_HINT_MOUSE_RELATIVE_MODE_WARP

This complicated mouse handling and is a rarely tested path. Real relative mode is much better performance and higher precision.
This commit is contained in:
Sam Lantinga 2024-12-18 17:49:51 -08:00
parent 6e0df0af24
commit e08f34c3be
10 changed files with 16 additions and 90 deletions

View file

@ -2532,21 +2532,6 @@ extern "C" {
*/
#define SDL_HINT_MOUSE_RELATIVE_MODE_CENTER "SDL_MOUSE_RELATIVE_MODE_CENTER"
/**
* A variable controlling whether relative mouse mode is implemented using
* mouse warping.
*
* The variable can be set to the following values:
*
* - "0": Relative mouse mode uses raw input. (default)
* - "1": Relative mouse mode uses mouse warping.
*
* This hint can be set anytime relative mode is not currently enabled.
*
* \since This hint is available since SDL 3.1.3.
*/
#define SDL_HINT_MOUSE_RELATIVE_MODE_WARP "SDL_MOUSE_RELATIVE_MODE_WARP"
/**
* A variable setting the scale for mouse motion, in floating point, when the
* mouse is in relative mode.