qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] windows keys
@ 2005-02-04 22:48 Lee
  0 siblings, 0 replies; 2+ messages in thread
From: Lee @ 2005-02-04 22:48 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 239 bytes --]


Hello List,

Attached is a patch for the sdl.c file to enable the windows-specific keys
(left windows key, right windows key, menu button) to function inside
windows 2000.


FILE: sdl.c
CVS VERSION: 1.21




-- 
Lee
linuxtwidler@gmail.com

[-- Attachment #2: windows-buttons.patch --]
[-- Type: application/octet-stream, Size: 557 bytes --]

--- qemu-original/sdl.c	2005-01-17 16:32:23.000000000 -0600
+++ qemu/sdl.c	2005-02-04 16:26:52.000000000 -0600
@@ -115,9 +115,9 @@
    0xb5,      /* 112  Divide */
    0xb8,      /* 113  Alt-R  */
    0xc6,      /* 114  Break  */   
-   0x0,         /* 115 */
-   0x0,         /* 116 */
-   0x0,         /* 117 */
+   0xdb,         /* 115 windows left button */
+   0xdc,         /* 116 windows right button */
+   0xdd,         /* 117 right menu button */
    0x0,         /* 118 */
    0x0,         /* 119 */
    0x70,         /* 120 Hiragana_Katakana */

^ permalink raw reply	[flat|nested] 2+ messages in thread
* [Qemu-devel] [PATCH] Windows keys
@ 2005-02-26 21:31 olig9
  0 siblings, 0 replies; 2+ messages in thread
From: olig9 @ 2005-02-26 21:31 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 669 bytes --]

Hello,
the attached patch makes the Windows keys and the menu key available via
keymaps. It is based on a patch that was submitted on Feb. 4. which added
theses keys to the list of hardcoded keys. With this patch, the keys now
work when using the -k option.
The patch also makes Escape available when using keymaps. It was tested on
Linux host with Win98se, Win2k and GamesKnoppix (=^Debian) and applies
cleanly to qemu-snapshot-2005-02-25_23.tar.bz2

BTW. is it just me or do the CVS snapshots from dad-answers.com now lack
KQemu?

Oliver

-- 
Lassen Sie Ihren Gedanken freien Lauf... z.B. per FreeSMS
GMX bietet bis zu 100 FreeSMS/Monat: http://www.gmx.net/de/go/mail

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: windows-buttons-keymaps.patch --]
[-- Type: text/x-patch; name="windows-buttons-keymaps.patch", Size: 1238 bytes --]

diff -Naur qemu-snapshot-2005-02-25_23/keymaps/modifiers qemu-snapshot-2005-02-25_23.patched/keymaps/modifiers
--- qemu-snapshot-2005-02-25_23/keymaps/modifiers	2004-12-12 17:56:30.000000000 +0100
+++ qemu-snapshot-2005-02-25_23.patched/keymaps/modifiers	2005-02-26 21:40:52.000000000 +0100
@@ -8,9 +8,10 @@
 Control_R 0x9d
 Control_L 0x1d
 
-# Translate Meta, Super and Hyper to Windows keys. 
+# Translate Super to Windows keys. 
 # This is hardcoded. See documentation for details. 
+Super_R 0xdb
+Super_L 0xdc
 
 # Translate Menu to the Windows Application key. 
-# This one does not work either. 
 Menu 0xdd
diff -Naur qemu-snapshot-2005-02-25_23/sdl_keysym.h qemu-snapshot-2005-02-25_23.patched/sdl_keysym.h
--- qemu-snapshot-2005-02-25_23/sdl_keysym.h	2004-12-12 17:56:30.000000000 +0100
+++ qemu-snapshot-2005-02-25_23.patched/sdl_keysym.h	2005-02-26 21:39:28.000000000 +0100
@@ -213,6 +213,8 @@
 {"Meta_R", SDLK_RMETA},
 {"Shift_L", SDLK_LSHIFT},
 {"Shift_R", SDLK_RSHIFT},
+{"Super_L", SDLK_LSUPER},
+{"Super_R", SDLK_RSUPER},
 
     /* special keys */
 {"BackSpace", SDLK_BACKSPACE},
@@ -270,6 +272,7 @@
 {"Multi_Key", SDLK_COMPOSE},
 {"Num_Lock", SDLK_NUMLOCK},
 {"Pause", SDLK_PAUSE},
+{"Escape", SDLK_ESCAPE},
 
 {0,0},
 };

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-02-26 21:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-04 22:48 [Qemu-devel] [PATCH] windows keys Lee
  -- strict thread matches above, loose matches on Subject: below --
2005-02-26 21:31 [Qemu-devel] [PATCH] Windows keys olig9

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).