aboutsummaryrefslogtreecommitdiff
path: root/src/common/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/include')
-rw-r--r--src/common/include/proto/mouse.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/common/include/proto/mouse.h b/src/common/include/proto/mouse.h
new file mode 100644
index 0000000..782620c
--- /dev/null
+++ b/src/common/include/proto/mouse.h
@@ -0,0 +1,12 @@
+#pragma once
+
+#include <stdint.h>
+#include <stddef.h>
+
+typedef struct {
+ int16_t delta_x, delta_y;
+ int8_t delta_wheel;
+ uint8_t lbtn, rbtn, midbtn;
+} mouse_event_t;
+
+/* vim: set sts=0 ts=4 sw=4 tw=0 noet :*/