initial commit 🤞️
This commit is contained in:
33
inc/put.h
Normal file
33
inc/put.h
Normal file
@@ -0,0 +1,33 @@
|
||||
#ifndef PUT_H
|
||||
#define PUT_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
enum put_event_type {
|
||||
PUT_EXPOSE,
|
||||
PUT_MOUSE_DOWN,
|
||||
PUT_MOUSE_UP,
|
||||
PUT_MOUSE_MOVE,
|
||||
PUT_KEY,
|
||||
PUT_SCROLL
|
||||
};
|
||||
|
||||
enum {
|
||||
PUT_MOD_SHIFT = 1 << 0,
|
||||
PUT_MOD_CTRL = 1 << 1,
|
||||
PUT_MOD_ALT = 1 << 2,
|
||||
PUT_MOD_SUPER = 1 << 3
|
||||
};
|
||||
|
||||
|
||||
struct put_event {
|
||||
enum put_event_type type;
|
||||
int x;
|
||||
int y;
|
||||
int dx;
|
||||
int dy;
|
||||
int key;
|
||||
uint32_t mods;
|
||||
};
|
||||
|
||||
#endif /* PUT_H */
|
||||
Reference in New Issue
Block a user