- added Windows(tm) keys to the German keymap

This commit is contained in:
Volker Ruppert 2001-12-19 19:15:12 +00:00
parent 658fef64cd
commit 384d4f1cce
3 changed files with 16 additions and 5 deletions

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: gui.h,v 1.17 2001-12-14 17:54:58 cbothamy Exp $
// $Id: gui.h,v 1.18 2001-12-19 19:15:12 vruppert Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2001 MandrakeSoft S.A.
@ -221,3 +221,7 @@ private:
#define BX_KEY_KP_ENTER 99
#define BX_KEY_KP_MULTIPLY 100
#define BX_KEY_KP_DIVIDE 101
#define BX_KEY_WIN_L 102
#define BX_KEY_WIN_R 103
#define BX_KEY_MENU 104

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: x.cc,v 1.27 2001-12-16 17:17:16 vruppert Exp $
// $Id: x.cc,v 1.28 2001-12-19 19:15:12 vruppert Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2001 MandrakeSoft S.A.
@ -749,6 +749,9 @@ Bit32u keymap_de[][2] = {
{ XK_Mode_switch , BX_KEY_ALT_R },
{ XK_Multi_key , BX_KEY_ALT_R },
{ XK_Control_R , BX_KEY_CTRL_R },
{ XK_Super_L , BX_KEY_WIN_L },
{ XK_Super_R , BX_KEY_WIN_R },
{ XK_Menu , BX_KEY_MENU },
};
extern Bit8u graphics_snapshot[32 * 1024];

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: keyboard.cc,v 1.39 2001-12-12 10:38:39 cbothamy Exp $
// $Id: keyboard.cc,v 1.40 2001-12-19 19:15:12 vruppert Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2001 MandrakeSoft S.A.
@ -62,7 +62,7 @@ bx_keyb_c::bx_keyb_c(void)
memset( &s, 0, sizeof(s) );
BX_KEY_THIS put("KBD");
BX_KEY_THIS settype(KBDLOG);
BX_DEBUG(("Init $Id: keyboard.cc,v 1.39 2001-12-12 10:38:39 cbothamy Exp $"));
BX_DEBUG(("Init $Id: keyboard.cc,v 1.40 2001-12-19 19:15:12 vruppert Exp $"));
}
bx_keyb_c::~bx_keyb_c(void)
@ -97,7 +97,7 @@ bx_keyb_c::resetinternals(Boolean powerup)
void
bx_keyb_c::init(bx_devices_c *d, bx_cmos_c *cmos)
{
BX_DEBUG(("Init $Id: keyboard.cc,v 1.39 2001-12-12 10:38:39 cbothamy Exp $"));
BX_DEBUG(("Init $Id: keyboard.cc,v 1.40 2001-12-19 19:15:12 vruppert Exp $"));
Bit32u i;
BX_KEY_THIS devices = d;
@ -712,6 +712,10 @@ bx_keyb_c::gen_scancode(Bit32u key)
case BX_KEY_SCRL_LOCK: scancode = 0x46; break;
case BX_KEY_PAUSE: extended = 1; scancode = 0x45; break;
case BX_KEY_WIN_L: extended = 1; scancode = 0x5B; break;
case BX_KEY_WIN_R: extended = 1; scancode = 0x5C; break;
case BX_KEY_MENU: extended = 1; scancode = 0x5D; break;
default:
BX_DEBUG(( "bx_keyb_c::gen_scancode : Unhandled %u",
(unsigned) key));