changeset 275:53fc686e9428

Added support for the pause key under DirectX
author Sam Lantinga <slouken@libsdl.org>
date Wed, 13 Feb 2002 18:21:48 +0000
parents 051b991765ba
children 8af85680ca0a
files src/video/windx5/SDL_dx5events.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/windx5/SDL_dx5events.c	Wed Feb 13 17:45:24 2002 +0000
+++ b/src/video/windx5/SDL_dx5events.c	Wed Feb 13 18:21:48 2002 +0000
@@ -621,6 +621,9 @@
 
 void DX5_InitOSKeymap(_THIS)
 {
+#ifndef DIK_PAUSE
+#define DIK_PAUSE	0xC5
+#endif
 	int i;
 
 	/* Map the DIK scancodes to SDL keysyms */
@@ -724,6 +727,7 @@
 	DIK_keymap[DIK_DIVIDE] = SDLK_KP_DIVIDE;
 	DIK_keymap[DIK_SYSRQ] = SDLK_SYSREQ;
 	DIK_keymap[DIK_RMENU] = SDLK_RALT;
+	DIK_keymap[DIK_PAUSE] = SDLK_BREAK;
 	DIK_keymap[DIK_HOME] = SDLK_HOME;
 	DIK_keymap[DIK_UP] = SDLK_UP;
 	DIK_keymap[DIK_PRIOR] = SDLK_PAGEUP;