Use USING_WIN_UI for desktop Windows console.

This commit is contained in:
Unknown W. Brackets
2016-01-03 15:10:50 -08:00
parent d165680ee7
commit da78ec0b4d
7 changed files with 26 additions and 26 deletions
+3 -3
View File
@@ -17,8 +17,8 @@
#if defined(SDL)
#include <SDL_keyboard.h>
#elif defined(_WIN32) && !defined(_XBOX)
#include <windows.h>
#elif defined(USING_WIN_UI)
#include "CommonWindows.h"
#endif
#include <set>
@@ -374,7 +374,7 @@ void SetDefaultKeyMap(DefaultMaps dmap, bool replace) {
azerty = true;
else if (q == 'q' && w == 'w' && y == 'z')
qwertz = true;
#elif defined(_WIN32) && !defined(_XBOX)
#elif defined(USING_WIN_UI)
HKL localeId = GetKeyboardLayout(0);
// TODO: Is this list complete enough?
switch ((int)(intptr_t)localeId & 0xFFFF) {