aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGeoff Voelker1996-03-16 22:43:37 +0000
committerGeoff Voelker1996-03-16 22:43:37 +0000
commitc684f4753b3331fb5e3d2ffb1f824371e6f99304 (patch)
treee018678400ff27c0114226b010ff742028341b90 /src
parent262df1e230ba9f88b6338f7a47d526ad27570bb1 (diff)
downloademacs-c684f4753b3331fb5e3d2ffb1f824371e6f99304.tar.gz
emacs-c684f4753b3331fb5e3d2ffb1f824371e6f99304.zip
(VK_NUMPAD_*, VK_LWIN, VK_RWIN, VK_APPS):
Define virtual keys for the numpad functions and the three new keys on Windows keyboards.
Diffstat (limited to 'src')
-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 ();
588extern void wait_for_sync (); 588extern void wait_for_sync ();
589 589
590extern BOOL parse_button (); 590extern BOOL parse_button ();
591
592/* Keypad command key support. Win32 doesn't have virtual keys defined
593 for the function keys on the keypad (they are mapped to the standard
594 fuction keys), so we define our own. */
595#define VK_NUMPAD_BEGIN 0x92
596#define VK_NUMPAD_CLEAR (VK_NUMPAD_BEGIN + 0)
597#define VK_NUMPAD_ENTER (VK_NUMPAD_BEGIN + 1)
598#define VK_NUMPAD_PRIOR (VK_NUMPAD_BEGIN + 2)
599#define VK_NUMPAD_NEXT (VK_NUMPAD_BEGIN + 3)
600#define VK_NUMPAD_END (VK_NUMPAD_BEGIN + 4)
601#define VK_NUMPAD_HOME (VK_NUMPAD_BEGIN + 5)
602#define VK_NUMPAD_LEFT (VK_NUMPAD_BEGIN + 6)
603#define VK_NUMPAD_UP (VK_NUMPAD_BEGIN + 7)
604#define VK_NUMPAD_RIGHT (VK_NUMPAD_BEGIN + 8)
605#define VK_NUMPAD_DOWN (VK_NUMPAD_BEGIN + 9)
606#define VK_NUMPAD_INSERT (VK_NUMPAD_BEGIN + 10)
607#define VK_NUMPAD_DELETE (VK_NUMPAD_BEGIN + 11)
608
609#ifndef VK_LWIN
610/* Older compiler environments don't have these defined. */
611#define VK_LWIN 0x5B
612#define VK_RWIN 0x5C
613#define VK_APPS 0x5D
614#endif