- add a bunch of missing key codes for MSW. These will only be used if
wxHAS_RAW_KEY_CODES is not available in the wxWindows library. my patch "patch.wx-raw-keycodes" adds wxHAS_RAW_KEY_CODES to the wxWindows library, and it will also be in wxWindows 2.3.3 and beyond.
This commit is contained in:
parent
9d20ece24c
commit
137e132371
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////
|
||||
// $Id: wx.cc,v 1.12 2002-09-04 15:51:04 bdenney Exp $
|
||||
// $Id: wx.cc,v 1.13 2002-09-04 19:14:08 bdenney Exp $
|
||||
/////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// wxWindows VGA display for Bochs. wx.cc implements a custom
|
||||
@ -569,14 +569,20 @@ MyPanel::fillBxKeyEvent (wxKeyEvent& wxev, BxKeyEvent& bxev, Boolean release)
|
||||
case WXK_NUMPAD_DIVIDE: bx_key = BX_KEY_KP_DIVIDE; break;
|
||||
|
||||
// Keys not handled by wxMSW
|
||||
case 20: bx_key = BX_KEY_CAPS_LOCK; break; // =+
|
||||
case 186: bx_key = BX_KEY_SEMICOLON; break; // ;:
|
||||
case 187: bx_key = BX_KEY_EQUALS; break; // =+
|
||||
case 188: bx_key = BX_KEY_COMMA; break; // ,<
|
||||
case 189: bx_key = BX_KEY_MINUS; break; // -_
|
||||
case 190: bx_key = BX_KEY_MINUS; break; // .>
|
||||
case 191: bx_key = BX_KEY_SLASH; break; // /?
|
||||
case 192: bx_key = BX_KEY_GRAVE; break; // `~
|
||||
case 219: bx_key = BX_KEY_LEFT_BRACKET; break; // [{
|
||||
case 221: bx_key = BX_KEY_RIGHT_BRACKET; break; // ]}
|
||||
case 220: bx_key = BX_KEY_BACKSLASH; break; // \|
|
||||
case 186: bx_key = BX_KEY_SEMICOLON; break; // ;:
|
||||
case 222: bx_key = BX_KEY_SINGLE_QUOTE; break; // '"
|
||||
case 188: bx_key = BX_KEY_COMMA; break; // ,<
|
||||
case 191: bx_key = BX_KEY_SLASH; break; // /?
|
||||
case 305: bx_key = BX_KEY_KP_5; break; // keypad 5
|
||||
case 392: bx_key = BX_KEY_KP_ADD; break; // keypad plus
|
||||
|
||||
default:
|
||||
wxLogMessage("Unhandled key event: %i (0x%x)", key, key);
|
||||
|
Loading…
Reference in New Issue
Block a user