summaryrefslogtreecommitdiffstats
path: root/spice/enums.h
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2012-08-15 12:27:32 +0300
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-08-27 17:10:48 +0200
commit3b619bd9c14a2557d82d88d2bd28a02c45a9ea76 (patch)
treefd0e85cb6a640da5b2b247fe5bdcf49ca2125dc3 /spice/enums.h
parent3838ad140a046c4ddf42fef58c9727ecfdc09f9f (diff)
downloadspice-protocol-3b619bd9c14a2557d82d88d2bd28a02c45a9ea76.tar.gz
spice-protocol-3b619bd9c14a2557d82d88d2bd28a02c45a9ea76.tar.xz
spice-protocol-3b619bd9c14a2557d82d88d2bd28a02c45a9ea76.zip
inputs: add an INPUTS_KEY_SCANCODE message
Add a new arbitrary keyboard scancodes message. For now, it will be used to avoid unwanted key repeatition when there is jitter in the network and too much time between DOWN and UP messages, instead the client will send the press & release scancode in a sequence from a single message. If the server doesn't support INPUTS_CAP_KEY_SCANCODE, the client is responsible to handle a fallback mode with the exisiting KEY_DOWN and KEY_UP messages. See also: https://bugzilla.redhat.com/show_bug.cgi?id=812347
Diffstat (limited to 'spice/enums.h')
-rw-r--r--spice/enums.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/spice/enums.h b/spice/enums.h
index 1936bdf..ba876cd 100644
--- a/spice/enums.h
+++ b/spice/enums.h
@@ -491,6 +491,7 @@ enum {
SPICE_MSGC_INPUTS_KEY_DOWN = 101,
SPICE_MSGC_INPUTS_KEY_UP,
SPICE_MSGC_INPUTS_KEY_MODIFIERS,
+ SPICE_MSGC_INPUTS_KEY_SCANCODE,
SPICE_MSGC_INPUTS_MOUSE_MOTION = 111,
SPICE_MSGC_INPUTS_MOUSE_POSITION,
SPICE_MSGC_INPUTS_MOUSE_PRESS,