initial commit 🤞

This commit is contained in:
betty
2025-12-27 20:47:41 -05:00
commit c06f9aeefe
8 changed files with 281 additions and 0 deletions

33
inc/put.h Normal file
View 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 */