Test tool The name of test_send_input is changed into ico_send_inputevent.
[profile/ivi/ico-uxf-weston-plugin.git] / src / ico_input_mgr.h
1 /*
2  * Copyright © 2013-2014 TOYOTA MOTOR CORPORATION.
3  *
4  * Permission to use, copy, modify, distribute, and sell this software and
5  * its documentation for any purpose is hereby granted without fee, provided
6  * that the above copyright notice appear in all copies and that both that
7  * copyright notice and this permission notice appear in supporting
8  * documentation, and that the name of the copyright holders not be used in
9  * advertising or publicity pertaining to distribution of the software
10  * without specific, written prior permission.  The copyright holders make
11  * no representations about the suitability of this software for any
12  * purpose.  It is provided "as is" without express or implied warranty.
13  *
14  * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
15  * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
16  * FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
17  * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
18  * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
19  * CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
20  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21  */
22 /**
23  * @brief   Multi Input Manager header for Device Input Controller
24  *
25  * @date    Feb-21-2014
26  */
27
28 #ifndef _ICO_INPUT_MGR_H_
29 #define _ICO_INPUT_MGR_H_
30
31 /* Pseudo input device name                         */
32 #define ICO_PSEUDO_INPUT_POINTER    "ico-pseudo-input-pointer"
33 #define ICO_PSEUDO_INPUT_TOUCH      "ico-pseudo-input-touch"
34 #define ICO_PSEUDO_INPUT_KEY        "ico-pseudo-input-key"
35
36 /* Input Region struct for Haptic Device Controller */
37 struct ico_uifw_input_region    {
38     uint16_t    change;                 /* change method                        */
39                                         /*   ICO_INPUT_MGR_DEVICE_REGION_ADD    */
40                                         /*   ICO_INPUT_MGR_DEVICE_REGION_REMOVE */
41                                         /*   ICO_INPUT_MGR_DEVICE_REGION_CHANGE */
42                                         /*   ICO_INPUT_MGR_DEVICE_REGION_REMOVEALL*/
43     uint16_t    node;                   /* display node                         */
44     uint32_t    surfaceid;              /* surface Id                           */
45     uint16_t    surface_x;              /* surface absolute X coordinate        */
46     uint16_t    surface_y;              /* surface absolute Y coordinate        */
47     uint16_t    x;                      /* input region relative X coordinate   */
48     uint16_t    y;                      /* input region relative Y coordinate   */
49     uint16_t    width;                  /* input region width                   */
50     uint16_t    height;                 /* input region height                  */
51     int16_t     hotspot_x;              /* hotspot of X relative coordinate     */
52     int16_t     hotspot_y;              /* hotspot of Y relative coordinate     */
53     uint16_t    cursor_x;               /* cursor region X coordinate           */
54     uint16_t    cursor_y;               /* cursor region Y coordinate           */
55     uint16_t    cursor_width;           /* cursor region width                  */
56     uint16_t    cursor_height;          /* cursor region height                 */
57     uint32_t    attr;                   /* input region attribute               */
58 };
59
60 #endif  /*_ICO_INPUT_MGR_H_*/