]> xenbits.xen.org Git - xenclient/ioemu-pq.git/commitdiff
Add print screen, HP and volume control scan codes to the new switcher source.
authorKamala Narasimhan <kamala.narasimhan@citrix.com>
Mon, 16 Nov 2009 16:32:55 +0000 (11:32 -0500)
committerKamala Narasimhan <kamala.narasimhan@citrix.com>
Mon, 16 Nov 2009 16:32:55 +0000 (11:32 -0500)
master/switcher

index 10b4dfac27c780ed4335b880ebf5c97fce9123db..11e817a247fa9021158042d168a47c8f7f6b2be7 100644 (file)
@@ -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)