summaryrefslogtreecommitdiffstats
path: root/client/red_key.h
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2012-02-29 16:58:46 +0200
committerYonit Halperin <yhalperi@redhat.com>2012-03-01 08:58:52 +0200
commit68cdc5488da1a008fa4e8a4447b85aa8ac9c2735 (patch)
treef75005edec20d1149aaa722b4df2f2974b3d79f3 /client/red_key.h
parenta50619e7334ff3620034a8b2ea75ceeffd4a805a (diff)
downloadspice-68cdc5488da1a008fa4e8a4447b85aa8ac9c2735.tar.gz
spice-68cdc5488da1a008fa4e8a4447b85aa8ac9c2735.tar.xz
spice-68cdc5488da1a008fa4e8a4447b85aa8ac9c2735.zip
client: keyboard - add mapping for volume keys
Add support for sending volume keys scancodes to the guest RHBZ #552539 A good reference for mapping keymaps to scancodes can be found in spice-gtk/gtk/keymaps.csv Signed-off-by: Yonit Halperin <yhalperi@redhat.com>
Diffstat (limited to 'client/red_key.h')
-rw-r--r--client/red_key.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/client/red_key.h b/client/red_key.h
index ea3396ab..3789c9a0 100644
--- a/client/red_key.h
+++ b/client/red_key.h
@@ -121,7 +121,10 @@ enum RedKey {
REDKEY_ESCAPE_BASE = 0x100,
REDKEY_PAD_ENTER = REDKEY_ESCAPE_BASE + 0x1c,
REDKEY_R_CTRL = REDKEY_ESCAPE_BASE + 0x1d,
+ REDKEY_MUTE = REDKEY_ESCAPE_BASE + 0x20,
REDKEY_FAKE_L_SHIFT = REDKEY_ESCAPE_BASE + 0x2a,
+ REDKEY_VOLUME_DOWN = REDKEY_ESCAPE_BASE + 0x2e,
+ REDKEY_VOLUME_UP = REDKEY_ESCAPE_BASE + 0x30,
REDKEY_PAD_DIVIDE = REDKEY_ESCAPE_BASE + 0x35,
REDKEY_FAKE_R_SHIFT = REDKEY_ESCAPE_BASE + 0x36,
REDKEY_CTRL_PRINT_SCREEN = REDKEY_ESCAPE_BASE + 0x37,