]> xenbits.xen.org Git - xenclient/ioemu-pq.git/commitdiff
While at it inject volume control scancodes also.
authorKamala Narasimhan <kamala.narasimhan@citrix.com>
Wed, 14 Oct 2009 18:23:44 +0000 (14:23 -0400)
committerKamala Narasimhan <kamala.narasimhan@citrix.com>
Wed, 14 Oct 2009 18:23:44 +0000 (14:23 -0400)
We should now see the volume control progress bar or slider adjust within guest when you press volume up/down buttons.

master/new-input-code

index e798b3cc35a0aaad15c8592886c262f59df6b605..78b384b727f7926bca43fc4ccaea3a05ae49a40e 100644 (file)
@@ -1,5 +1,5 @@
 diff --git a/hid-linux.c b/hid-linux.c
-index f2e0bce..e59312c 100644
+index f2e0bce..a4b0cd6 100644
 --- a/hid-linux.c
 +++ b/hid-linux.c
 @@ -42,12 +42,11 @@
@@ -18,7 +18,7 @@ index f2e0bce..e59312c 100644
  
  #define DEBUG_HID_LINUX
  
-@@ -64,468 +63,637 @@ while (0);
+@@ -64,468 +63,649 @@ while (0);
  # define DEBUG(_format_, args...) (void)0
  #endif
  
@@ -330,6 +330,18 @@ index f2e0bce..e59312c 100644
 +    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;
      }