mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-29 06:28:29 +00:00
Added SDL_HINT_WINDOWS_RAW_KEYBOARD to control whether raw keyboard is enabled on Windows
This commit is contained in:
@@ -2380,6 +2380,17 @@ extern "C" {
|
||||
*/
|
||||
#define SDL_HINT_WINDOW_FRAME_USABLE_WHILE_CURSOR_HIDDEN "SDL_WINDOW_FRAME_USABLE_WHILE_CURSOR_HIDDEN"
|
||||
|
||||
/**
|
||||
* A variable controlling whether SDL generates window-close events for Alt+F4 on Windows.
|
||||
*
|
||||
* The variable can be set to the following values:
|
||||
* "0" - SDL will only do normal key handling for Alt+F4.
|
||||
* "1" - SDL will generate a window-close event when it sees Alt+F4. (default)
|
||||
*
|
||||
* This hint can be set anytime.
|
||||
*/
|
||||
#define SDL_HINT_WINDOWS_CLOSE_ON_ALT_F4 "SDL_WINDOWS_CLOSE_ON_ALT_F4"
|
||||
|
||||
/**
|
||||
* A variable controlling whether menus can be opened with their keyboard shortcut (Alt+mnemonic).
|
||||
*
|
||||
@@ -2408,6 +2419,17 @@ extern "C" {
|
||||
*/
|
||||
#define SDL_HINT_WINDOWS_ENABLE_MESSAGELOOP "SDL_WINDOWS_ENABLE_MESSAGELOOP"
|
||||
|
||||
/**
|
||||
* A variable controlling whether raw keyboard events are used on Windows
|
||||
*
|
||||
* The variable can be set to the following values:
|
||||
* "0" - The Windows message loop is used for keyboard events.
|
||||
* "1" - Low latency raw keyboard events are used. (default)
|
||||
*
|
||||
* This hint can be set anytime.
|
||||
*/
|
||||
#define SDL_HINT_WINDOWS_RAW_KEYBOARD "SDL_WINDOWS_RAW_KEYBOARD"
|
||||
|
||||
/**
|
||||
* A variable controlling whether SDL uses Critical Sections for mutexes on Windows.
|
||||
*
|
||||
@@ -2442,17 +2464,6 @@ extern "C" {
|
||||
#define SDL_HINT_WINDOWS_INTRESOURCE_ICON "SDL_WINDOWS_INTRESOURCE_ICON"
|
||||
#define SDL_HINT_WINDOWS_INTRESOURCE_ICON_SMALL "SDL_WINDOWS_INTRESOURCE_ICON_SMALL"
|
||||
|
||||
/**
|
||||
* A variable controlling whether SDL generates window-close events for Alt+F4 on Windows.
|
||||
*
|
||||
* The variable can be set to the following values:
|
||||
* "0" - SDL will only do normal key handling for Alt+F4.
|
||||
* "1" - SDL will generate a window-close event when it sees Alt+F4. (default)
|
||||
*
|
||||
* This hint can be set anytime.
|
||||
*/
|
||||
#define SDL_HINT_WINDOWS_CLOSE_ON_ALT_F4 "SDL_WINDOWS_CLOSE_ON_ALT_F4"
|
||||
|
||||
/**
|
||||
* A variable controlling whether SDL uses the D3D9Ex API introduced in Windows Vista, instead of normal D3D9.
|
||||
*
|
||||
|
Reference in New Issue
Block a user