diff options
author | Alex Auvolat <alex@adnab.me> | 2017-04-24 16:04:48 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2017-04-24 16:04:48 +0200 |
commit | 978b3234a04f11f959f603db4756253278ca65df (patch) | |
tree | b2c027612168892d9a7477fa0f9cd64228bdf089 /src/common/include/proto/mouse.h | |
parent | 575b140a57e2bb86f05b8d18f01a9f2cea1f5034 (diff) | |
download | kogata-978b3234a04f11f959f603db4756253278ca65df.tar.gz kogata-978b3234a04f11f959f603db4756253278ca65df.zip |
Mouse code
Diffstat (limited to 'src/common/include/proto/mouse.h')
-rw-r--r-- | src/common/include/proto/mouse.h | 12 |
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 :*/ |