Added support for raw mouse and keyboard using GameInput on Windows
Fixes https://github.com/libsdl-org/SDL/issues/10442
This commit is contained in:
parent
8fdca9c691
commit
001dbc5da8
11 changed files with 729 additions and 12 deletions
|
@ -3823,6 +3823,20 @@ extern "C" {
|
|||
*/
|
||||
#define SDL_HINT_WINDOWS_ENABLE_MESSAGELOOP "SDL_WINDOWS_ENABLE_MESSAGELOOP"
|
||||
|
||||
/**
|
||||
* A variable controlling whether GameInput is used for raw keyboard and mouse on Windows.
|
||||
*
|
||||
* The variable can be set to the following values:
|
||||
*
|
||||
* - "0": GameInput is not used for raw keyboard and mouse events.
|
||||
* - "1": GameInput is used for raw keyboard and mouse events, if available. (default)
|
||||
*
|
||||
* This hint should be set before SDL is initialized.
|
||||
*
|
||||
* \since This hint is available since SDL 3.0.0.
|
||||
*/
|
||||
#define SDL_HINT_WINDOWS_GAMEINPUT "SDL_WINDOWS_GAMEINPUT"
|
||||
|
||||
/**
|
||||
* A variable controlling whether raw keyboard events are used on Windows.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue