From 341ffcefc93cd3a9fece09ad7bd287e34d0f0044 Mon Sep 17 00:00:00 2001 From: Kamala Narasimhan Date: Mon, 16 Nov 2009 11:32:55 -0500 Subject: [PATCH] Add print screen, HP and volume control scan codes to the new switcher source. --- master/switcher | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/master/switcher b/master/switcher index 10b4dfa..11e817a 100644 --- a/master/switcher +++ b/master/switcher @@ -11,10 +11,10 @@ index 7883718..0b6214c 100644 #endif /*QEMU_XEN_H*/ diff --git a/switcher.c b/switcher.c new file mode 100644 -index 0000000..3cb96cf +index 0000000..b89ac33 --- /dev/null +++ b/switcher.c -@@ -0,0 +1,268 @@ +@@ -0,0 +1,288 @@ +/* + * QEMU dom0_driver + * @@ -125,6 +125,26 @@ index 0000000..3cb96cf + keycode = 0x5C; + first = 0xe0; + break; ++ case KEY_PROG1: ++ keycode = 0x1; ++ first = 0xe0; ++ break; ++ case KEY_SYSRQ: ++ keycode = 0x37; ++ first = 0xe0; ++ break; ++ case KEY_MUTE: ++ keycode = 0x20; ++ first = 0xe0; ++ break; ++ case KEY_VOLUMEDOWN: ++ keycode = 0x2e; ++ first = 0xe0; ++ break; ++ case KEY_VOLUMEUP: ++ keycode = 0x30; ++ first = 0xe0; ++ break; + } + + if (first) -- 2.39.5