1
0
Fork 0
mirror of https://github.com/rfc2822/GfxTablet synced 2025-10-06 02:39:56 +02:00
GfxTablet/driver-uinput/protocol.h
Richard Hirner cef17da6d2 * app refactoring
* uinput driver
2013-01-26 21:24:36 +01:00

26 lines
487 B
C

#define NETWORKTABLET_PORT 40117
#pragma pack(push)
#pragma pack(1)
#define EVENT_TYPE_MOTION 0
#define EVENT_TYPE_BUTTON 1
#define EVENT_TYPE_SET_RESOLUTION 2
struct event_packet
{
char type; /* EVENT_TYPE_... */
struct { /* required */
short x, y;
short pressure;
};
struct { /* only required for EVENT_TYPE_BUTTON */
char button; /* number of button, beginning with 1 */
char down; /* 1 = button down, 0 = button up */
};
};
#pragma pack(pop)