[Spice-commits] spice/enums.h spice/protocol.h
Marc-André Lureau
elmarco at kemper.freedesktop.org
Mon Aug 27 08:36:27 PDT 2012
spice/enums.h | 1 +
spice/protocol.h | 4 ++++
2 files changed, 5 insertions(+)
New commits:
commit 3b619bd9c14a2557d82d88d2bd28a02c45a9ea76
Author: Marc-André Lureau <marcandre.lureau at gmail.com>
Date: Wed Aug 15 12:27:32 2012 +0300
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
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,
diff --git a/spice/protocol.h b/spice/protocol.h
index b46861a..7008399 100644
--- a/spice/protocol.h
+++ b/spice/protocol.h
@@ -130,6 +130,10 @@ enum {
SPICE_DISPLAY_CAP_COMPOSITE,
};
+enum {
+ SPICE_INPUTS_CAP_KEY_SCANCODE,
+};
+
#include <spice/end-packed.h>
#endif /* _H_SPICE_PROTOCOL */
More information about the Spice-commits
mailing list