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_
19 #include <ico_input_mgr-client-protocol.h>
25 /*============================================================================*/
27 /*============================================================================*/
29 * type of input event's allocation
30 * @ICO_SYC_INPUT_ALLOC_FIX: fixed allocation
31 * @ICO_SYC_INPUT_ALLOC_VARIABLE: variable allocation
33 typedef enum _input_alloc {
34 ICO_SYC_INPUT_ALLOC_FIX = 1,
35 ICO_SYC_INPUT_ALLOC_VARIABLE = 0
36 } ico_syc_input_alloc_e;
40 * @ICO_SYC_INPUT_TYPE_POINTER: mouse event
41 * @ICO_SYC_INPUT_TYPE_KEYBOARD: keyboard event
42 * @ICO_SYC_INPUT_TYPE_TOUCH: touch panel event
43 * @ICO_SYC_INPUT_TYPE_SWITCH: switch event
45 typedef enum _input_type {
46 ICO_SYC_INPUT_TYPE_POINTER = ICO_INPUT_MGR_DEVICE_TYPE_POINTER,
47 ICO_SYC_INPUT_TYPE_KEYBOARD = ICO_INPUT_MGR_DEVICE_TYPE_KEYBOARD,
48 ICO_SYC_INPUT_TYPE_TOUCH = ICO_INPUT_MGR_DEVICE_TYPE_TOUCH,
49 ICO_SYC_INPUT_TYPE_SWITCH = ICO_INPUT_MGR_DEVICE_TYPE_SWITCH
50 } ico_syc_input_type_e;
52 /*============================================================================*/
54 /*============================================================================*/
55 /*--------------------------------------------------------------------------*/
57 * @brief ico_syc_add_input
58 * Add the input event to the application.
60 * @param[in] appid application id
61 * @param[in] device input device
62 * @param[in] input input number
63 * @param[in] fix fixed allocation or variable allocation
64 * @param[in] keycode keycode
65 * (If set "0", not allocate to keycode)
69 * @see ico_syc_input_alloc_e
71 /*--------------------------------------------------------------------------*/
72 int ico_syc_add_input(const char *appid, const char *device,
73 int input, int fix, int keycode);
75 /*--------------------------------------------------------------------------*/
77 * @brief ico_syc_delete_input
78 * Delete the input event assigned to the application.
80 * @param[in] appid application id
81 * @param[in] device input device
82 * @param[in] input input number
87 /*--------------------------------------------------------------------------*/
88 int ico_syc_delete_input(const char *appid, const char *device, int input);
93 #endif /*_ICO_SYC_INPUTCTL_H_*/
94 /* vim:set expandtab ts=4 sw=4: */