From 135c670182308769a22e9b16f659690537592be3 Mon Sep 17 00:00:00 2001 From: crs Date: Sun, 24 Oct 2004 18:12:38 +0000 Subject: [PATCH] Added VK_SLEEP. --- lib/platform/CMSWindowsKeyState.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/platform/CMSWindowsKeyState.cpp b/lib/platform/CMSWindowsKeyState.cpp index 5f9d0ad5..1d47e0e7 100644 --- a/lib/platform/CMSWindowsKeyState.cpp +++ b/lib/platform/CMSWindowsKeyState.cpp @@ -47,6 +47,9 @@ #define VK_LAUNCH_APP1 0xB6 #define VK_LAUNCH_APP2 0xB7 #endif +#if !defined(VK_SLEEP) +#define VK_SLEEP 0x5F +#endif // // CMSWindowsKeyState @@ -149,7 +152,7 @@ const char* CMSWindowsKeyState::s_vkToName[] = "VK_RWIN", "VK_APPS", "vk 0x5e", - "vk 0x5f", + "VK_SLEEP", "VK_NUMPAD0", "VK_NUMPAD1", "VK_NUMPAD2", @@ -410,7 +413,7 @@ const KeyID CMSWindowsKeyState::s_virtualKey[][2] = /* 0x5c */ { kKeyNone, kKeySuper_R }, // VK_RWIN /* 0x5d */ { kKeyMenu, kKeyMenu }, // VK_APPS /* 0x5e */ { kKeyNone, kKeyNone }, // undefined - /* 0x5f */ { kKeyNone, kKeyNone }, // undefined + /* 0x5f */ { kKeySleep, kKeyNone }, // VK_SLEEP /* 0x60 */ { kKeyKP_0, kKeyNone }, // VK_NUMPAD0 /* 0x61 */ { kKeyKP_1, kKeyNone }, // VK_NUMPAD1 /* 0x62 */ { kKeyKP_2, kKeyNone }, // VK_NUMPAD2 @@ -588,7 +591,7 @@ const UINT CMSWindowsKeyState::s_mapE000[] = /* 0x40 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x48 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x50 */ 0, 0, 0, 0, 0, 0, 0, 0, - /* 0x58 */ 0, 0, 0, 0, 0, 0, 0, 0, + /* 0x58 */ 0, 0, 0, 0, 0, 0, 0, VK_SLEEP | 0x100u, /* 0x60 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x68 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0,