inputs: add a 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.

See also: https://bugzilla.redhat.com/show_bug.cgi?id=812347
This commit is contained in:
Marc-André Lureau 2012-08-15 12:52:43 +03:00
parent 2c55c9d0c6
commit 86e286ba20
2 changed files with 3 additions and 1 deletions

@ -1 +1 @@
Subproject commit 3838ad140a046c4ddf42fef58c9727ecfdc09f9f
Subproject commit 3b619bd9c14a2557d82d88d2bd28a02c45a9ea76

View File

@ -934,6 +934,8 @@ channel InputsChannel : BaseChannel {
keyboard_modifier_flags modifiers;
} @ctype(SpiceMsgcKeyModifiers) key_modifiers;
Data key_scancode;
message {
int32 dx;
int32 dy;