[Spice-devel] [2/6] [PATCH spice-protocol] Add horizontal mouse wheel support
Matthew Francis
mjay.francis at gmail.com
Wed Oct 25 11:23:48 UTC 2017
Signed-off-by: Matthew Francis <mjay.francis at gmail.com>
---
spice/enums.h | 2 ++
spice/vd_agent.h | 2 ++
2 files changed, 4 insertions(+)
diff --git a/spice/enums.h b/spice/enums.h
index c6de125..96ad050 100644
--- a/spice/enums.h
+++ b/spice/enums.h
@@ -347,6 +347,8 @@ typedef enum SpiceMouseButton {
SPICE_MOUSE_BUTTON_RIGHT,
SPICE_MOUSE_BUTTON_UP,
SPICE_MOUSE_BUTTON_DOWN,
+ SPICE_MOUSE_BUTTON_WHEEL_LEFT,
+ SPICE_MOUSE_BUTTON_WHEEL_RIGHT,
SPICE_MOUSE_BUTTON_ENUM_END
} SpiceMouseButton;
diff --git a/spice/vd_agent.h b/spice/vd_agent.h
index 7109ede..c467066 100644
--- a/spice/vd_agent.h
+++ b/spice/vd_agent.h
@@ -171,6 +171,8 @@ typedef struct SPICE_ATTR_PACKED VDAgentDisplayConfig {
#define VD_AGENT_RBUTTON_MASK (1 << 3)
#define VD_AGENT_UBUTTON_MASK (1 << 4)
#define VD_AGENT_DBUTTON_MASK (1 << 5)
+#define VD_AGENT_WLBUTTON_MASK (1 << 6)
+#define VD_AGENT_WRBUTTON_MASK (1 << 7)
typedef struct SPICE_ATTR_PACKED VDAgentMouseState {
uint32_t x;
--
2.7.4
More information about the Spice-devel
mailing list