2 * Copyright © 2013-2014 TOYOTA MOTOR CORPORATION.
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.
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.
23 * @brief Multi Input Manager header for Device Input Controller
28 #ifndef _ICO_INPUT_MGR_H_
29 #define _ICO_INPUT_MGR_H_
31 /* Input Region struct for Haptic Device Controller */
32 struct ico_uifw_input_region {
33 uint16_t change; /* change method */
34 /* ICO_INPUT_MGR_DEVICE_REGION_ADD */
35 /* ICO_INPUT_MGR_DEVICE_REGION_REMOVE */
36 /* ICO_INPUT_MGR_DEVICE_REGION_CHANGE */
37 /* ICO_INPUT_MGR_DEVICE_REGION_REMOVEALL*/
38 uint16_t node; /* display node */
39 uint32_t surfaceid; /* surface Id */
40 uint16_t surface_x; /* surface absolute X coordinate */
41 uint16_t surface_y; /* surface absolute Y coordinate */
42 uint16_t x; /* input region relative X coordinate */
43 uint16_t y; /* input region relative Y coordinate */
44 uint16_t width; /* input region width */
45 uint16_t height; /* input region height */
46 int16_t hotspot_x; /* hotspot of X relative coordinate */
47 int16_t hotspot_y; /* hotspot of Y relative coordinate */
48 uint16_t cursor_x; /* cursor region X coordinate */
49 uint16_t cursor_y; /* cursor region Y coordinate */
50 uint16_t cursor_width; /* cursor region width */
51 uint16_t cursor_height; /* cursor region height */
52 uint32_t attr; /* input region attribute */
55 #endif /*_ICO_INPUT_MGR_H_*/