Signed-off-by: Dietmar Maurer <dietmar@xxxxxxxxxxx> --- spice/enums.h | 8 ++++++++ spice/protocol.h | 1 + 2 files changed, 9 insertions(+) diff --git a/spice/enums.h b/spice/enums.h index 8c731e9..e6adb5a 100644 --- a/spice/enums.h +++ b/spice/enums.h @@ -301,6 +301,13 @@ typedef enum SpiceMouseButtonMask { SPICE_MOUSE_BUTTON_MASK_MASK = 0x7 } SpiceMouseButtonMask; +typedef enum SpiceKeyboardKeyvalFlags { + SPICE_KEYBOARD_KEYVAL_FLAG_DOWN = (1 << 0), + SPICE_KEYBOARD_KEYVAL_FLAG_UP = (1 << 1), + + SPICE_KEYBOARD_KEYVAL_FLAGS_MASK = 0x3 +} SpiceKeyboardKeyvalFlags; + typedef enum SpiceCursorType { SPICE_CURSOR_TYPE_ALPHA, SPICE_CURSOR_TYPE_MONO, @@ -495,6 +502,7 @@ enum { SPICE_MSGC_INPUTS_KEY_UP, SPICE_MSGC_INPUTS_KEY_MODIFIERS, SPICE_MSGC_INPUTS_KEY_SCANCODE, + SPICE_MSGC_INPUTS_KEY_KEYVAL, 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 e11f384..4f48293 100644 --- a/spice/protocol.h +++ b/spice/protocol.h @@ -135,6 +135,7 @@ enum { enum { SPICE_INPUTS_CAP_KEY_SCANCODE, + SPICE_INPUTS_CAP_KEY_KEYVAL, }; enum { -- 1.7.10.4 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel