tizen-extension: add a generate_axis event request to input generator 33/200433/5
authorjeon <jhyuni.kang@samsung.com>
Mon, 25 Feb 2019 05:44:23 +0000 (14:44 +0900)
committerJeongHyun Kang <jhyuni.kang@samsung.com>
Thu, 30 May 2019 23:13:42 +0000 (23:13 +0000)
  - input generator can generate wheel and touch axis events
    using this protocol

Change-Id: I94cf8a78f607b9f3375453027c65ef6b733e40dd

protocol/tizen/tizen-extension.xml

index f2f809f..8e981a8 100644 (file)
     <request name="destroy" type="destructor"/>
   </interface>
 
-  <interface name="tizen_input_device_manager" version="2">
+  <interface name="tizen_input_device_manager" version="3">
     <description summary="global input device manager object">
       Tizen input device manager is a global interface. This object has device add/remove events
       to provide tizen input device object to a client. This allows for a client to get the con
       </description>
     </request>
 
+    <!-- version 3 additions -->
+    <enum name="axis_type" since="3">
+      <entry name="none" value="0" summary="no axis type"/>
+      <entry name="wheel" value="1" summary="pointer vertical wheel axis"/>
+      <entry name="hwheel" value="2" summary="pointer horizental wheel axis"/>
+      <entry name="radius_x" value="3" summary="touch radius of x axis of an event area e.g. touching area with a finger or a pen"/>
+      <entry name="radius_y" value="4" summary="touch radius of y axis of an event area e.g. touching area with a finger or a pen"/>
+      <entry name="pressure" value="5" summary="touch pressure in an event area e.g. touching area with a finger or a pen"/>
+      <entry name="angle" value="6" summary="touch angle in an event area e.g. touching area with a finger or a pen"/>
+      <entry name="palm" value="7" summary="touch palm in an event area e.g. touching area with a finger or a pen"/>
+    </enum>
+
+    <request name="generate_axis" since="3">
+      <description summary="generate a pointer/touch axes event using specific or default device">
+        When the server got this request, the server choices generate a event directly or just save values.
+        Pointer axes (such as wheel/hwheel) are delivered to clients independantly about pointer events,
+        but touch axes are delivered to normal touch events(begin/update/end).
+        So the server just save touch axes before generate touch request is came and send a touch event
+        include saved touch axes value.
+      </description>
+      <arg name="type" type="uint" enum="axis_type"/>
+      <arg name="value" type="fixed" summary="axis value"/>
+    </request>
+
   </interface>
 
   <interface name="tizen_input_device" version="1">