mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-02-02 19:41:05 +00:00
SDL_windowsevents.c: fix build against older SDKs.
This commit is contained in:
parent
f5c0cdea38
commit
ccb06296b9
|
@ -81,6 +81,16 @@
|
||||||
#define WM_UNICHAR 0x0109
|
#define WM_UNICHAR 0x0109
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef IS_HIGH_SURROGATE
|
||||||
|
#define IS_HIGH_SURROGATE(x) (((x) >= 0xd800) && ((x) <= 0xdbff))
|
||||||
|
#endif
|
||||||
|
#ifndef IS_LOW_SURROGATE
|
||||||
|
#define IS_LOW_SURROGATE(x) (((x) >= 0xdc00) && ((x) <= 0xdfff))
|
||||||
|
#endif
|
||||||
|
#ifndef IS_SURROGATE_PAIR
|
||||||
|
#define IS_SURROGATE_PAIR(h,l) (IS_HIGH_SURROGATE(h) && IS_LOW_SURROGATE(l))
|
||||||
|
#endif
|
||||||
|
|
||||||
static SDL_Scancode
|
static SDL_Scancode
|
||||||
VKeytoScancodeFallback(WPARAM vkey)
|
VKeytoScancodeFallback(WPARAM vkey)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue