2 * Copyright (c) 2013, TOYOTA MOTOR CORPORATION.
4 * This program is licensed under the terms and conditions of the
5 * Apache License, version 2.0. The full text of the Apache License is at
6 * http://www.apache.org/licenses/LICENSE-2.0
10 * @brief header file of Input Control API
11 * for privilege applications
16 #ifndef _ICO_SYC_INPUTCTL_H_
17 #define _ICO_SYC_INPUTCTL_H_
23 /*============================================================================*/
25 /*============================================================================*/
27 * type of input event's allocation
28 * @ICO_SYC_INPUT_ALLOC_FIX: fixed allocation
29 * @ICO_SYC_INPUT_ALLOC_VARIABLE: variable allocation
31 typedef enum _input_alloc {
32 ICO_SYC_INPUT_ALLOC_FIX = 1,
33 ICO_SYC_INPUT_ALLOC_VARIABLE = 0
34 } ico_syc_input_alloc_e;
38 * @ICO_SYC_INPUT_TYPE_POINTER: mouse event
39 * @ICO_SYC_INPUT_TYPE_KEYBOARD: keyboard event
40 * @ICO_SYC_INPUT_TYPE_TOUCH: touch panel event
41 * @ICO_SYC_INPUT_TYPE_SWITCH: switch event
43 typedef enum _input_type {
44 ICO_SYC_INPUT_TYPE_POINTER = 1,
45 ICO_SYC_INPUT_TYPE_KEYBOARD = 2,
46 ICO_SYC_INPUT_TYPE_TOUCH = 4,
47 ICO_SYC_INPUT_TYPE_SWITCH = 8
48 } ico_syc_input_type_e;
50 /*============================================================================*/
52 /*============================================================================*/
53 /*--------------------------------------------------------------------------*/
55 * @brief ico_syc_add_input
56 * Add the input event to the application.
58 * @param[in] appid application id
59 * @param[in] device input device
60 * @param[in] input input number
61 * @param[in] fix fixed allocation or variable allocation
62 * @param[in] keycode keycode
63 * (If set "0", not allocate to keycode)
67 * @see ico_syc_input_alloc_e
69 /*--------------------------------------------------------------------------*/
70 int ico_syc_add_input(const char *appid, const char *device,
71 int input, int fix, int keycode);
73 /*--------------------------------------------------------------------------*/
75 * @brief ico_syc_delete_input
76 * Delete the input event assigned to the application.
78 * @param[in] appid application id
79 * @param[in] device input device
80 * @param[in] input input number
85 /*--------------------------------------------------------------------------*/
86 int ico_syc_delete_input(const char *appid, const char *device, int input);
91 #endif /*_ICO_SYC_INPUTCTL_H_*/
92 /* vim:set expandtab ts=4 sw=4: */