packaging: Update dependencies and bump version to 0.9.23
[profile/ivi/ico-uxf-weston-plugin.git] / src / ico_input_mgr.h
index 4961289..1b3b40d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright © 2013 TOYOTA MOTOR CORPORATION.
+ * Copyright © 2013-2014 TOYOTA MOTOR CORPORATION.
  *
  * Permission to use, copy, modify, distribute, and sell this software and
  * its documentation for any purpose is hereby granted without fee, provided
 /**
  * @brief   Multi Input Manager header for Device Input Controller
  *
- * @date    Jul-26-2013
+ * @date    Feb-21-2014
  */
 
 #ifndef _ICO_INPUT_MGR_H_
 #define _ICO_INPUT_MGR_H_
 
+/* Pseudo input device name                         */
+#define ICO_PSEUDO_INPUT_POINTER    "ico-pseudo-input-pointer"
+#define ICO_PSEUDO_INPUT_TOUCH      "ico-pseudo-input-touch"
+#define ICO_PSEUDO_INPUT_KEY        "ico-pseudo-input-key"
+
 /* Input Region struct for Haptic Device Controller */
 struct ico_uifw_input_region    {
+    uint16_t    change;                 /* change method                        */
+                                        /*   ICO_INPUT_MGR_DEVICE_REGION_ADD    */
+                                        /*   ICO_INPUT_MGR_DEVICE_REGION_REMOVE */
+                                        /*   ICO_INPUT_MGR_DEVICE_REGION_CHANGE */
+                                        /*   ICO_INPUT_MGR_DEVICE_REGION_REMOVEALL*/
     uint16_t    node;                   /* display node                         */
-    uint16_t    res;                    /* (unused)                             */
     uint32_t    surfaceid;              /* surface Id                           */
     uint16_t    surface_x;              /* surface absolute X coordinate        */
     uint16_t    surface_y;              /* surface absolute Y coordinate        */
@@ -39,8 +48,13 @@ struct ico_uifw_input_region    {
     uint16_t    y;                      /* input region relative Y coordinate   */
     uint16_t    width;                  /* input region width                   */
     uint16_t    height;                 /* input region height                  */
-    int32_t     attr;                   /* input region attribute               */
+    int16_t     hotspot_x;              /* hotspot of X relative coordinate     */
+    int16_t     hotspot_y;              /* hotspot of Y relative coordinate     */
+    uint16_t    cursor_x;               /* cursor region X coordinate           */
+    uint16_t    cursor_y;               /* cursor region Y coordinate           */
+    uint16_t    cursor_width;           /* cursor region width                  */
+    uint16_t    cursor_height;          /* cursor region height                 */
+    uint32_t    attr;                   /* input region attribute               */
 };
 
 #endif  /*_ICO_INPUT_MGR_H_*/
-