aboutsummaryrefslogtreecommitdiff
path: root/src/common/include
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2017-04-24 16:04:48 +0200
committerAlex Auvolat <alex@adnab.me>2017-04-24 16:04:48 +0200
commit978b3234a04f11f959f603db4756253278ca65df (patch)
treeb2c027612168892d9a7477fa0f9cd64228bdf089 /src/common/include
parent575b140a57e2bb86f05b8d18f01a9f2cea1f5034 (diff)
downloadkogata-978b3234a04f11f959f603db4756253278ca65df.tar.gz
kogata-978b3234a04f11f959f603db4756253278ca65df.zip
Mouse code
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 :*/