summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoff Voelker <voelker@cs.washington.edu>1996-03-16 22:43:37 +0000
committerGeoff Voelker <voelker@cs.washington.edu>1996-03-16 22:43:37 +0000
commit3251b4431dc93c3c710005fd433cbbe6ba51cea7 (patch)
tree53a5d07be7a26fc16b95fed7c70a98e53a46d05e
parent2eb34717472f13e8d1500a30e13b047543350f47 (diff)
downloademacs-3251b4431dc93c3c710005fd433cbbe6ba51cea7.tar.gz
(VK_NUMPAD_*, VK_LWIN, VK_RWIN, VK_APPS):
Define virtual keys for the numpad functions and the three new keys on Windows keyboards.
-rw-r--r--src/w32term.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/w32term.h b/src/w32term.h
index 3d027de1e8d..36d9a4fd73c 100644
--- a/src/w32term.h
+++ b/src/w32term.h
@@ -588,3 +588,27 @@ extern BOOL post_msg ();
extern void wait_for_sync ();
extern BOOL parse_button ();
+
+/* Keypad command key support. Win32 doesn't have virtual keys defined
+ for the function keys on the keypad (they are mapped to the standard
+ fuction keys), so we define our own. */
+#define VK_NUMPAD_BEGIN 0x92
+#define VK_NUMPAD_CLEAR (VK_NUMPAD_BEGIN + 0)
+#define VK_NUMPAD_ENTER (VK_NUMPAD_BEGIN + 1)
+#define VK_NUMPAD_PRIOR (VK_NUMPAD_BEGIN + 2)
+#define VK_NUMPAD_NEXT (VK_NUMPAD_BEGIN + 3)
+#define VK_NUMPAD_END (VK_NUMPAD_BEGIN + 4)
+#define VK_NUMPAD_HOME (VK_NUMPAD_BEGIN + 5)
+#define VK_NUMPAD_LEFT (VK_NUMPAD_BEGIN + 6)
+#define VK_NUMPAD_UP (VK_NUMPAD_BEGIN + 7)
+#define VK_NUMPAD_RIGHT (VK_NUMPAD_BEGIN + 8)
+#define VK_NUMPAD_DOWN (VK_NUMPAD_BEGIN + 9)
+#define VK_NUMPAD_INSERT (VK_NUMPAD_BEGIN + 10)
+#define VK_NUMPAD_DELETE (VK_NUMPAD_BEGIN + 11)
+
+#ifndef VK_LWIN
+/* Older compiler environments don't have these defined. */
+#define VK_LWIN 0x5B
+#define VK_RWIN 0x5C
+#define VK_APPS 0x5D
+#endif