7 #include <linux/input.h>
9 typedef enum LGNC_STATUS_T {
12 LGNC_NOT_HANDLED = -1,
15 LGNC_INVALID_PARAMS = -3,
16 LGNC_NOT_ENOUGH_MEMORY = -4,
18 LGNC_NOT_SUPPORTED = -6,
19 LGNC_BUFFER_FULL = -7,
20 LGNC_HOST_NOT_CONNECTED = -8,
21 LGNC_VERSION_MISMATCH = -9,
22 LGNC_ALREADY_REGISTERED = -10,
24 LGNC_NOT_INITIALIZED = -11,
27 typedef enum LGNC_MSG_TYPE_T {
29 LGNC_MSG_FOCUS_IN = 1,
30 LGNC_MSG_FOCUS_OUT = 2,
31 LGNC_MSG_TERMINATE = 3,
32 LGNC_MSG_HOST_EVENT = 4,
38 typedef enum LGNC_KEY_COND_T {
45 LGNC_KEY_COND_LAST = 6,
48 typedef enum LGNC_INPUT_DEV_TYPE_T {
49 LGNC_INPUT_TYPE_NONE = 0,
50 LGNC_INPUT_TYPE_KEYBOARD = 1,
51 LGNC_INPUT_TYPE_MOUSE = 2,
52 LGNC_INPUT_TYPE_JOYSTICK = 4,
53 LGNC_INPUT_TYPE_REMOTE = 8,
54 LGNC_INPUT_TYPE_VIRTUAL = 16,
55 LGNC_INPUT_TYPE_KEY_RETURN = 32,
56 LGNC_INPUT_TYPE_CURSOR_RETURN = 64,
58 LGNC_INPUT_TYPE_NLP = 1024,
59 LGNC_INPUT_TYPE_SMARTREMOTE = 2048,
60 LGNC_INPUT_TYPE_XPAD = 4096,
61 LGNC_INPUT_TYPE_HIDPAD = 8192,
62 LGNC_INPUT_TYPE_WIDI = 16384,
63 LGNC_INPUT_TYPE_PS3 = 32768,
64 LGNC_INPUT_TYPE_ALL = 65023,
65 } LGNC_INPUT_DEV_TYPE_T;
68 struct input_event event;
70 LGNC_INPUT_DEV_TYPE_T deviceType;
74 LGNC_STATUS_T (*msgHandler)(LGNC_MSG_TYPE_T msg,
unsigned int submsg,
char *pData,
unsigned short dataSize);
78 unsigned int (*mouseEventCallback)(
int posX,
int posY,
unsigned int key, LGNC_KEY_COND_T keyCond,
Definition: lgnc_openapi_types.h:73