Files
xptos/inc/put.h
2025-12-27 20:48:16 -05:00

34 lines
397 B
C

#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 */