- swap the scancodes of "numlock" and "pause" - this simplifies the test for
extended scancodes
This commit is contained in:
parent
f02ef5cd7a
commit
55ccdca509
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: win32.cc,v 1.31 2002-04-04 18:11:53 vruppert Exp $
|
||||
// $Id: win32.cc,v 1.32 2002-04-07 18:07:20 vruppert Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2002 MandrakeSoft S.A.
|
||||
@ -625,7 +625,9 @@ void bx_gui_c::handle_events(void) {
|
||||
headerbar_click(LOWORD(key));
|
||||
}
|
||||
else {
|
||||
if (((key & 0x0100) && ((key & 0x01ff) != 0x0145)) | ((key & 0x01ff) == 0x45)) {
|
||||
// Swap the scancodes of "numlock" and "pause"
|
||||
if ((key & 0xff)==0x45) key ^= 0x100;
|
||||
if (key & 0x0100) {
|
||||
// This makes the "AltGr" key on European keyboards work
|
||||
if (key==0x138) {
|
||||
scancode = 0x9d; // left control key released
|
||||
|
Loading…
Reference in New Issue
Block a user