mirror of
https://github.com/rfc2822/GfxTablet
synced 2025-10-03 09:39:16 +02:00
* app refactoring
* uinput driver
This commit is contained in:
parent
1b93a87ed0
commit
cef17da6d2
34 changed files with 251 additions and 103 deletions
26
driver-uinput/protocol.h
Normal file
26
driver-uinput/protocol.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
|
||||
#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)
|
Loading…
Add table
Add a link
Reference in a new issue