Преглед на файлове

Hack to compile against MinGW where there are missing VKey definitions which exist in VisualStudio and MinGW 64 but not MinGW 32

David Wimsey преди 11 години
родител
ревизия
49d37dc4ba
променени са 1 файла, в които са добавени 15 реда и са изтрити 0 реда
  1. 15 0
      Samples/shell/src/win32/InputWin32.cpp

+ 15 - 0
Samples/shell/src/win32/InputWin32.cpp

@@ -154,6 +154,21 @@ static int GetKeyModifierState()
 	return key_modifier_state;
 }
 
+// These are defined in winuser.h of MinGW 64 but are missing from MinGW 32
+// Visual Studio has them by default
+#if defined(__MINGW32__)  && !defined(__MINGW64__)
+#define VK_OEM_NEC_EQUAL 0x92
+#define VK_OEM_FJ_JISHO 0x92
+#define VK_OEM_FJ_MASSHOU 0x93
+#define VK_OEM_FJ_TOUROKU 0x94
+#define VK_OEM_FJ_LOYA 0x95
+#define VK_OEM_FJ_ROYA 0x96
+#define VK_OEM_AX 0xE1
+#define VK_ICO_HELP 0xE3
+#define VK_ICO_00 0xE4
+#define VK_ICO_CLEAR 0xE6
+#endif // !defined(__MINGW32__)  || defined(__MINGW64__)
+
 static void InitialiseKeymap()
 {
 	// Initialise the key map with default values.