FreeRDP
rdpei_common.h
1 
21 #ifndef FREERDP_CHANNEL_RDPEI_COMMON_H
22 #define FREERDP_CHANNEL_RDPEI_COMMON_H
23 
24 #include <winpr/crt.h>
25 #include <winpr/stream.h>
26 #include <freerdp/channels/rdpei.h>
27 
29 enum
30 {
31  EVENTID_SC_READY = 0x0001,
32  EVENTID_CS_READY = 0x0002,
33  EVENTID_TOUCH = 0x0003,
34  EVENTID_SUSPEND_TOUCH = 0x0004,
35  EVENTID_RESUME_TOUCH = 0x0005,
36  EVENTID_DISMISS_HOVERING_CONTACT = 0x0006,
37  EVENTID_PEN = 0x0008
38 };
39 
40 BOOL rdpei_read_2byte_unsigned(wStream* s, UINT16* value);
41 BOOL rdpei_write_2byte_unsigned(wStream* s, UINT16 value);
42 BOOL rdpei_read_2byte_signed(wStream* s, INT16* value);
43 BOOL rdpei_write_2byte_signed(wStream* s, INT16 value);
44 BOOL rdpei_read_4byte_unsigned(wStream* s, UINT32* value);
45 BOOL rdpei_write_4byte_unsigned(wStream* s, UINT32 value);
46 BOOL rdpei_read_4byte_signed(wStream* s, INT32* value);
47 BOOL rdpei_write_4byte_signed(wStream* s, INT32 value);
48 BOOL rdpei_read_8byte_unsigned(wStream* s, UINT64* value);
49 BOOL rdpei_write_8byte_unsigned(wStream* s, UINT64 value);
50 
51 void touch_event_reset(RDPINPUT_TOUCH_EVENT* event);
52 void touch_frame_reset(RDPINPUT_TOUCH_FRAME* frame);
53 
54 void pen_event_reset(RDPINPUT_PEN_EVENT* event);
55 void pen_frame_reset(RDPINPUT_PEN_FRAME* frame);
56 
57 #endif /* FREERDP_CHANNEL_RDPEI_COMMON_H */
a touch event with some frames
a touch event with some frames
a frame containing contact points