From 978b3234a04f11f959f603db4756253278ca65df Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 24 Apr 2017 16:04:48 +0200 Subject: Mouse code --- src/common/include/proto/mouse.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/common/include/proto/mouse.h (limited to 'src/common') 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 +#include + +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 :*/ -- cgit v1.2.3