Commit 528959fc authored by Sam Lantinga's avatar Sam Lantinga

Added support for the pause key under DirectX

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40276
parent fb441e58
...@@ -621,6 +621,9 @@ void DX5_PumpEvents(_THIS) ...@@ -621,6 +621,9 @@ void DX5_PumpEvents(_THIS)
void DX5_InitOSKeymap(_THIS) void DX5_InitOSKeymap(_THIS)
{ {
#ifndef DIK_PAUSE
#define DIK_PAUSE 0xC5
#endif
int i; int i;
/* Map the DIK scancodes to SDL keysyms */ /* Map the DIK scancodes to SDL keysyms */
...@@ -724,6 +727,7 @@ void DX5_InitOSKeymap(_THIS) ...@@ -724,6 +727,7 @@ void DX5_InitOSKeymap(_THIS)
DIK_keymap[DIK_DIVIDE] = SDLK_KP_DIVIDE; DIK_keymap[DIK_DIVIDE] = SDLK_KP_DIVIDE;
DIK_keymap[DIK_SYSRQ] = SDLK_SYSREQ; DIK_keymap[DIK_SYSRQ] = SDLK_SYSREQ;
DIK_keymap[DIK_RMENU] = SDLK_RALT; DIK_keymap[DIK_RMENU] = SDLK_RALT;
DIK_keymap[DIK_PAUSE] = SDLK_BREAK;
DIK_keymap[DIK_HOME] = SDLK_HOME; DIK_keymap[DIK_HOME] = SDLK_HOME;
DIK_keymap[DIK_UP] = SDLK_UP; DIK_keymap[DIK_UP] = SDLK_UP;
DIK_keymap[DIK_PRIOR] = SDLK_PAGEUP; DIK_keymap[DIK_PRIOR] = SDLK_PAGEUP;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment