SDL_windowsevents.c: fix build against older SDKs.

This commit is contained in:
Ozkan Sezer 2021-08-19 03:15:02 +03:00
parent f5c0cdea38
commit ccb06296b9

View File

@ -81,6 +81,16 @@
#define WM_UNICHAR 0x0109
#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
VKeytoScancodeFallback(WPARAM vkey)
{