Add protocol for axis events
authorScott Moreau <oreaus@gmail.com>
Tue, 20 Mar 2012 15:10:18 +0000 (09:10 -0600)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 22 Mar 2012 16:34:17 +0000 (12:34 -0400)
protocol/wayland.xml

index 3631289..3dcfac8 100644 (file)
       <arg name="state" type="uint"/>
     </event>
 
+    <enum name="axis">
+      <description summary="axis types"/>
+      <entry name="vertical_scroll" value="0"/>
+      <entry name="horizontal_scroll" value="1"/>
+    </enum>
+
+    <event name="axis">
+      <description summary="axis event">
+       Scroll and other axis notifications.
+      </description>
+
+      <arg name="time" type="uint"/>
+      <arg name="axis" type="uint"/>
+      <arg name="value" type="int"/>
+    </event>
+
     <event name="key">
       <description summary="key event">
        A key was pressed or released.