summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-09-03 20:04:32 +0000
committerdarkvater <darkvater@openttd.org>2004-09-03 20:04:32 +0000
commitca671925205032384f9c2786ace42721f69579d5 (patch)
tree2456e8e7557ac968f42166fec1502dcec933fbae
parent4fec362b32801648da47340a127908643ef9cb5d (diff)
downloadopenttd-ca671925205032384f9c2786ace42721f69579d5.tar.xz
(svn r154) -Fix: some people while using MSVC don't have VK_OEM_3 defined? Or it could be Win2000/XP only
-rw-r--r--win32.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/win32.c b/win32.c
index e454d03dc..b79c297fa 100644
--- a/win32.c
+++ b/win32.c
@@ -100,6 +100,10 @@ typedef struct {
#define AS(x,z) {x,0,z}
#define AM(x,y,z,w) {x,y-x,z}
+#ifndef VK_OEM_3
+#define VK_OEM_3 0xC0
+#endif
+
static const VkMapping _vk_mapping[] = {
// Pageup stuff + up/down
AM(VK_PRIOR,VK_DOWN, WKC_PAGEUP, WKC_DOWN),