FreeRDP
Loading...
Searching...
No Matches
channels/ainput.h
1
21#ifndef FREERDP_CHANNEL_AINPUT_H
22#define FREERDP_CHANNEL_AINPUT_H
23
24#include <freerdp/api.h>
25#include <freerdp/dvc.h>
26#include <freerdp/types.h>
27
28#define AINPUT_CHANNEL_NAME "ainput"
29#define AINPUT_DVC_CHANNEL_NAME "FreeRDP::Advanced::Input"
30
31#ifdef __cplusplus
32extern "C"
33{
34#endif
35
36 typedef enum
37 {
38 MSG_AINPUT_VERSION = 0x01,
39 MSG_AINPUT_MOUSE = 0x02
40 } eAInputMsgType;
41
42 typedef enum
43 {
44 AINPUT_FLAGS_WHEEL = 0x0001,
45 AINPUT_FLAGS_MOVE = 0x0004,
46 AINPUT_FLAGS_DOWN = 0x0008,
47
48 AINPUT_FLAGS_REL = 0x0010,
49 AINPUT_FLAGS_HAVE_REL = 0x0020,
50
51 /* Pointer Flags */
52 AINPUT_FLAGS_BUTTON1 = 0x1000, /* left */
53 AINPUT_FLAGS_BUTTON2 = 0x2000, /* right */
54 AINPUT_FLAGS_BUTTON3 = 0x4000, /* middle */
55
56 /* Extended Pointer Flags */
57 AINPUT_XFLAGS_BUTTON1 = 0x0100,
58 AINPUT_XFLAGS_BUTTON2 = 0x0200
59 } AInputEventFlags;
60
61 typedef struct ainput_client_context AInputClientContext;
62
63#define AINPUT_VERSION_MAJOR 1
64#define AINPUT_VERSION_MINOR 0
65
66#ifdef __cplusplus
67}
68#endif
69
70#endif /* FREERDP_CHANNEL_AINPUT_H */