mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-26 12:27:44 +00:00
Disable GameInput for mouse and keyboard by default
We're going to wait for this to get more testing before enabling it by default. Fixes https://github.com/libsdl-org/SDL/issues/13846
This commit is contained in:
@@ -4306,9 +4306,8 @@ extern "C" {
|
|||||||
*
|
*
|
||||||
* The variable can be set to the following values:
|
* The variable can be set to the following values:
|
||||||
*
|
*
|
||||||
* - "0": GameInput is not used for raw keyboard and mouse events.
|
* - "0": GameInput is not used for raw keyboard and mouse events. (default)
|
||||||
* - "1": GameInput is used for raw keyboard and mouse events, if available.
|
* - "1": GameInput is used for raw keyboard and mouse events, if available.
|
||||||
* (default)
|
|
||||||
*
|
*
|
||||||
* This hint should be set before SDL is initialized.
|
* This hint should be set before SDL is initialized.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -603,7 +603,7 @@ static bool WIN_VideoInit(SDL_VideoDevice *_this)
|
|||||||
SDL_Log("DPI awareness: %s", WIN_GetDPIAwareness(_this));
|
SDL_Log("DPI awareness: %s", WIN_GetDPIAwareness(_this));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (SDL_GetHintBoolean(SDL_HINT_WINDOWS_GAMEINPUT, true)) {
|
if (SDL_GetHintBoolean(SDL_HINT_WINDOWS_GAMEINPUT, false)) {
|
||||||
WIN_InitGameInput(_this);
|
WIN_InitGameInput(_this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user