<div dir="ltr"><div><div>Having read this more carefully, the cursor scheme absolutely will not work.<br><br></div>The main problem is that the client may want to choose a cursor for a tool based on the location at which it came into proximity. It cannot set this cursor until after it gets the proximity event. If this desired cursor is different than the one the tool currently has set then that incorrect cursor will be seen, at least briefly.<br><br></div><div>A further problem is that there has to be an easy transition between clients that don't use the tablet api and those that do. Operation of gui widgets that work equally well with mouse or tablet should not change just because the client has decided to enable the tablet interface. The primary problem is that the pointer position must move to the last tablet tool positiion whether or not the client is using the tablet interface. This then means there cannot be more than one cursor (since they would be right atop each other).<br><br></div><div>My recommendation:<br><br></div><div>- Proximity-in jumps the cursor and pointer position to the location but does not change the cursor. It will however send proximity-in events to the client (it will also send proximity-out to other clients using the tablet interface, and normal wl_pointer exit events to clients not using the tablet interface).<br><br></div><div>- Client should respond to proximity-in by setting the wl_pointer cursor to whatever is desired. Notice this is identical to how clients not using the tablet interface respond to wl_pointer::enter events.<br><br></div><div>This will 'blink' still, as the current cursor is also possibly not equal to the desired cursor. This could be fixed, but if so the exact same fix must be done to enter events or you really are not solving anything. Also note that hiding the cursor is not acceptable, it will be perceived as a blink if the cursor was correct and near the location of the proximity-in.<br><br></div><div>- Proximity-in and enter events "freeze" the cursor at it's current location, and it does not move until the client sets the cursor image.<br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 5, 2015 at 8:24 PM, Peter Hutterer <span dir="ltr"><<a href="mailto:peter.hutterer@who-t.net" target="_blank">peter.hutterer@who-t.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Signed-off-by: Peter Hutterer <<a href="mailto:peter.hutterer@who-t.net">peter.hutterer@who-t.net</a>><br>
---<br>
This is the revamped version of the tablet protocol for graphics tablets<br>
(e.g. Wacom tablets). Too many changes from the last version (a year ago or<br>
so), so I won't detail them, best to look at it with fresh eyes.<br>
<br>
Makefile.am | 1 +<br>
unstable/tablet/README | 4 +<br>
unstable/tablet/tablet-unstable-v1.xml | 588 +++++++++++++++++++++++++++++++++<br>
3 files changed, 593 insertions(+)<br>
create mode 100644 unstable/tablet/README<br>
create mode 100644 unstable/tablet/tablet-unstable-v1.xml<br>
<br>
diff --git a/Makefile.am b/Makefile.am<br>
index 4bcab32..588cb2c 100644<br>
--- a/Makefile.am<br>
+++ b/Makefile.am<br>
@@ -6,6 +6,7 @@ protocols = \<br>
unstable/text-input/text-input-unstable-v1.xml \<br>
unstable/input-method/input-method-unstable-v1.xml \<br>
unstable/xdg-shell/xdg-shell-unstable-v5.xml \<br>
+ unstable/tablet/tablet-unstable-v1.xml \<br>
$(NULL)<br>
<br>
nobase_dist_pkgdata_DATA = $(protocols)<br>
diff --git a/unstable/tablet/README b/unstable/tablet/README<br>
new file mode 100644<br>
index 0000000..7ba8e77<br>
--- /dev/null<br>
+++ b/unstable/tablet/README<br>
@@ -0,0 +1,4 @@<br>
+Tablet protocol<br>
+<br>
+Maintainers:<br>
+Peter Hutterer <<a href="mailto:peter.hutterer@who-t.net">peter.hutterer@who-t.net</a>><br>
diff --git a/unstable/tablet/tablet-unstable-v1.xml b/unstable/tablet/tablet-unstable-v1.xml<br>
new file mode 100644<br>
index 0000000..b07eccb<br>
--- /dev/null<br>
+++ b/unstable/tablet/tablet-unstable-v1.xml<br>
@@ -0,0 +1,588 @@<br>
+<?xml version="1.0" encoding="UTF-8"?><br>
+<protocol name="wayland_tablet_unstable_v1"><br>
+ <description summary="Wayland protocol for graphics tablets"><br>
+ This description provides a high-level overview of the interplay between<br>
+ the interfaces defined this protocol. For details, see the protocol<br>
+ specification.<br>
+<br>
+ More than one tablet may exist, and device-specifics matter. Tablets are<br>
+ not represented by a single virtual device like wl_pointer. A client<br>
+ binds to the tablet manager object which is just a proxy object. From<br>
+ that, the client requests wp_tablet_manager.get_tablet_seat(wl_seat)<br>
+ and that returns the actual interface that has all the tablets. With<br>
+ this indirection, we can avoid merging wp_tablet into the actual wayland<br>
+ protocol, a long-term benefit.<br>
+<br>
+ The wp_tablet_seat sends a "tablet added" for each tablet connected.<br>
+ That event is followed by descriptive events about the hardware;<br>
+ currently that includes events for name, vid/pid and<br>
+ internal/external/display type, and a wp_tablet.path event that<br>
+ describes a local path. This path can be used to uniquely identify a<br>
+ tablet, or get more information through libwacom. Emulated or nested<br>
+ tablets can skip any of those, e.g. a virtual tablet may not have a<br>
+ vid/pid. The sequence of descriptive events is terminated by a<br>
+ wp_tablet.done event to signal that a client may now finalize any<br>
+ initialization for that tablet.<br>
+<br>
+ Events from tablets require a tool in proximity. Tools are also managed<br>
+ by the tablet seat, a "tool added" is sent whenever a tool is new to<br>
+ the compositor. That event is followed by a number of descriptive events<br>
+ about the hardware; currently that includes capabilities, serial id,<br>
+ hardware serial and tool type. Similar to the tablet interface, a<br>
+ wp_tablet_tool.done event is sent to terminate that initial sequence.<br>
+<br>
+ Any event from a tool happens on the wp_tablet_tool interface. When the<br>
+ tool gets into proximity of the tablet, a proximity_in event is sent on<br>
+ the wp_tablet_tool interface, listing the tablet and the surface. That<br>
+ event is followed by a motion event with the coordinates. After that,<br>
+ it's the usual motion, axis, button, etc. events.<br>
+ The protocol's serialisation means events are grouped by by<br>
+ wp_tablet_tool.frame events.<br>
+<br>
+ Two special events (that don't exist in X) are down and up. They signal<br>
+ "tip touching the surface". For tablets without real proximity<br>
+ detection, the sequence is: proximity_in, motion, down, frame.<br>
+<br>
+ When the tool leaves proximity, a proximity_out event is sent, followed<br>
+ by button release events for any button still down. This signals to<br>
+ the client that the buttons were held when the tool left proximity.<br>
+ Those events are all sent within the same frame.<br>
+<br>
+ If the tool moves out of the surface but stays in proximity (i.e.<br>
+ between windows), compositor-specific grab policies apply. This usually<br>
+ means that the proximity-out is delayed until all buttons are released.<br>
+<br>
+ Moving a tool physically from one tablet to the other has no real effect<br>
+ on the protocol, since we already have the tool object from the "tool<br>
+ added" event. All the information is already there and the proximity_in<br>
+ is all a client needs to reconstruct what happened.<br>
+<br>
+ Any extra axis is normalized, i.e. the client knows the range as<br>
+ specified in the protocol (e.g. [0, 65535]), the granularity however is<br>
+ unknown. The current axes are pressure, tilt (both x/y required) and<br>
+ distance, the most common set.<br>
+<br>
+ Since tablets work independently of the pointer controlled by the mouse,<br>
+ the focus handling is independent too and controlled by proximity.<br>
+ The wp_tablet_tool.set_cursor request sets a tool-specific cursor.<br>
+ This cursor surface may be the same as the mouse cursor, and it may be<br>
+ the same across tools but it is possible to be more fine-grained. For<br>
+ example, a client may set different cursors for the pen and eraser.<br>
+<br>
+ Tools are generally independent of tablets and it is<br>
+ compositor-specific policy when a tool can removed. Common approaches<br>
+ will likely include some form of removing a tool when all tablets the<br>
+ tool was used on is removed.<br>
+<br>
+ Warning! The protocol described in this file is experimental and<br>
+ backward incompatible changes may be made. Backward compatible changes<br>
+ may be added together with the corresponding interface version bump.<br>
+ Backward incompatible changes are done by bumping the version number in<br>
+ the protocol and interface names and resetting the interface version.<br>
+ Once the protocol is to be declared stable, the 'z' prefix and the<br>
+ version number in the protocol and interface names are removed and the<br>
+ interface version number is reset.<br>
+ </description><br>
+ <copyright><br>
+ Copyright 2014 © Stephen "Lyude" Chandler Paul<br>
+ Copyright 2015 © Red Hat, Inc.<br>
+<br>
+ Permission is hereby granted, free of charge, to any person<br>
+ obtaining a copy of this software and associated documentation files<br>
+ (the "Software"), to deal in the Software without restriction,<br>
+ including without limitation the rights to use, copy, modify, merge,<br>
+ publish, distribute, sublicense, and/or sell copies of the Software,<br>
+ and to permit persons to whom the Software is furnished to do so,<br>
+ subject to the following conditions:<br>
+<br>
+ The above copyright notice and this permission notice (including the<br>
+ next paragraph) shall be included in all copies or substantial<br>
+ portions of the Software.<br>
+<br>
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,<br>
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF<br>
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND<br>
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS<br>
+ BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN<br>
+ ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN<br>
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE<br>
+ SOFTWARE.<br>
+ </copyright><br>
+ <interface name="zwp_tablet_manager1" version="1"><br>
+ <description summary="controller object for graphic tablet devices"><br>
+ An object that provides access to the graphics tablets available on this<br>
+ system. Any tablet is associated with a seat, to get access to the<br>
+ actual tablets, use wp_tablet_manager.get_tablet_seat.<br>
+ </description><br>
+<br>
+ <request name="get_tablet_seat"><br>
+ <description summary="get the tablet seat"><br>
+ Get the wp_tablet_seat object for the given seat. This object<br>
+ provides access to all graphics tablets in this seat.<br>
+ </description><br>
+ <arg name="tablet_seat" type="new_id" interface="zwp_tablet_seat1"/><br>
+ <arg name="seat" type="object" interface="wl_seat" summary="The wl_seat object to retrieve the tablets for" /><br>
+ </request><br>
+<br>
+ <request name="destroy" type="destructor"><br>
+ <description summary="release the memory for the tablet manager object"><br>
+ This destroys the resources associated with the tablet manager.<br>
+ </description><br>
+ </request><br>
+ </interface><br>
+<br>
+ <interface name="zwp_tablet_seat1" version="1"><br>
+ <description summary="controller object for graphic tablet devices of a seat"><br>
+ An object that provides access to the graphics tablets available on this<br>
+ seat. After binding to this interface, the compositor sends a set of<br>
+ wp_tablet_seat.tablet_added and wp_tablet_seat.tool_added events.<br>
+ </description><br>
+<br>
+ <request name="destroy" type="destructor"><br>
+ <description summary="release the memory for the tablet seat object"><br>
+ This destroys the resources associated with the tablet seat.<br>
+ </description><br>
+ </request><br>
+<br>
+ <event name="tablet_added"><br>
+ <description summary="new device notification"><br>
+ This event is sent whenever a new tablet becomes available on this<br>
+ seat. This event only provides the object id of the tablet, any<br>
+ static information about the tablet (device name, vid/pid, etc.) is<br>
+ sent through the wp_tablet interface.<br>
+ </description><br>
+ <arg name="id" type="new_id" interface="zwp_tablet1" summary="the newly added graphics tablet"/><br>
+ </event><br>
+<br>
+ <event name="tool_added"><br>
+ <description summary="a new tool has been used with a tablet"><br>
+ This event is sent whenever a tool that has not previously been used<br>
+ with a tablet comes into use. This event only provides the object id<br>
+ of the tool, any static information about the tool (capabilities,<br>
+ type, et.c) is sent through the wp_tablet_tool interface.<br>
+ </description><br>
+ <arg name="id" type="new_id" interface="zwp_tablet_tool1" summary="the newly added tablet tool"/><br>
+ </event><br>
+ </interface><br>
+<br>
+ <interface name="zwp_tablet_tool1" version="1"><br>
+ <description summary="a physical tablet tool"><br>
+ An unique object that represents a physical tool that has been, or is<br>
+ currently in use with a tablet in this seat. Each wp_tablet_tool<br>
+ object stays valid until the client destroys it; the compositor<br>
+ reuses the wp_tablet_tool object to indicate that the object's<br>
+ respective physical tool has come into proximity of a tablet again.<br>
+ A client must not call wp_tablet_tool.destroy until it receives a<br>
+ wp_tablet_tool.release event.<br>
+<br>
+ A wp_tablet_tool object's uniqueness depends on the tablet's ability<br>
+ to report serial numbers. If the tablet doesn't support this<br>
+ capability, then the tool cannot be guaranteed to be unique.<br>
+<br>
+ A tablet tool has a number of static characteristics, e.g. tool type,<br>
+ serial_id and capabilities. These capabilities are sent in an event<br>
+ sequence after the wp_tablet_seat.tool_added event before any actual<br>
+ events from this tool. This initial event sequence is terminated by a<br>
+ wp_tablet_tool.done event.<br>
+<br>
+ Tablet tool events are grouped by wp_tablet_tool.frame events.<br>
+ Any events received before a wp_tablet_tool.frame event should be<br>
+ considered part of the same hardware state change.<br>
+ </description><br>
+<br>
+ <request name="set_cursor"><br>
+ <description summary="set the tablet tool's surface"><br>
+ Sets the surface of the cursor used for this tool on the given<br>
+ tablet. The surface is only shown when this tool is in proximity of<br>
+ this tablet. If the surface is NULL, the pointer image is hidden<br>
+ completely.<br>
+<br>
+ The parameters hotspot_x and hotspot_y define the position of the<br>
+ pointer surface relative to the pointer location. Its top-left corner<br>
+ is always at (x, y) - (hotspot_x, hotspot_y), where (x, y) are the<br>
+ coordinates of the pointer location, in surface local coordinates.<br>
+<br>
+ On surface.attach requests to the pointer surface, hotspot_x and<br>
+ hotspot_y are decremented by the x and y parameters passed to the<br>
+ request. Attach must be confirmed by wl_surface.commit as usual.<br>
+<br>
+ The hotspot can also be updated by passing the currently set pointer<br>
+ surface to this request with new values for hotspot_x and hotspot_y.<br>
+<br>
+ The current and pending input regions of the wl_surface are cleared,<br>
+ and wl_surface.set_input_region is ignored until the wl_surface is no<br>
+ longer used as the cursor. When the use as a cursor ends, the current<br>
+ and pending input regions become undefined, and the wl_surface is<br>
+ unmapped.<br>
+<br>
+ This request gives the surface the role of a cursor. The role<br>
+ assigned by this request is the same as assigned by<br>
+ wl_pointer.set_cursor meaning the same surface can be<br>
+ used both as a wl_pointer cursor and a wp_tablet cursor. If the<br>
+ surface already has another role, it raises a protocol error<br>
+ The surface may be used on multiple tablets and across multiple<br>
+ seats.<br>
+ </description><br>
+ <arg name="serial" type="uint" summary="serial of the enter event"/><br>
+ <arg name="surface" type="object" interface="wl_surface" allow-null="true"/><br>
+ <arg name="hotspot_x" type="int" summary="x coordinate in surface-relative coordinates"/><br>
+ <arg name="hotspot_y" type="int" summary="y coordinate in surface-relative coordinates"/><br>
+ </request><br>
+<br>
+ <request name="destroy" type="destructor"><br>
+ <description summary="destroy the tool object"><br>
+ This destroys the client's resource for this tool object.<br>
+<br>
+ A client must not issue this request until it receives a<br>
+ wp_tablet_tool.remove event.<br>
+ </description><br>
+ </request><br>
+<br>
+ <enum name="type"><br>
+ <description summary="a physical tool type"><br>
+ Describes the physical type of a tool. The physical type of a tool<br>
+ generally defines its base usage.<br>
+<br>
+ The mouse tool represents a mouse-shaped tool that is not a relative<br>
+ device but bound to the tablet's surface, providing absolute<br>
+ coordinates.<br>
+<br>
+ The lens tool is a mouse-shaped tool with an attached lens to<br>
+ provide precision focus.<br>
+ </description><br>
+ <entry name="pen" value="0x140" summary="Pen"/><br>
+ <entry name="eraser" value="0x141" summary="Eraser"/><br>
+ <entry name="brush" value="0x142" summary="Brush"/><br>
+ <entry name="pencil" value="0x143" summary="Pencil"/><br>
+ <entry name="airbrush" value="0x144" summary="Airbrush"/><br>
+ <entry name="finger" value="0x145" summary="Finger"/><br>
+ <entry name="mouse" value="0x146" summary="Mouse"/><br>
+ <entry name="lens" value="0x147" summary="Lens"/><br>
+ </enum><br>
+<br>
+ <event name="type"><br>
+ <description summary="tool type"><br>
+ The tool type is the high-level type of the tool and usually decides<br>
+ the interaction expected from this tool.<br>
+<br>
+ This event is sent in the initial burst of events before the<br>
+ wp_tablet_tool.done event.<br>
+ </description><br>
+ <arg name="tool_type" type="uint" summary="the physical tool type"/><br>
+ </event><br>
+<br>
+ <event name="serial_id"><br>
+ <description summary="unique serial number of the tool"><br>
+ If the tool can be identified by a unique 64-bit serial number, this<br>
+ event notifies the client of the serial number.<br>
+<br>
+ If multiple tablets are available in the same seat and the tool is<br>
+ uniquely identifiable by the serial number, that tool may move<br>
+ between tablets.<br>
+<br>
+ Otherwise, if the tool has no serial number and this event is<br>
+ missing, the tool is tied to the tablet it first comes into<br>
+ proximity with. Even if the physical tool is used on multiple<br>
+ tablets, separate wp_tablet_tool objects will be created, one per<br>
+ tablet.<br>
+<br>
+ This event is sent in the initial burst of events before the<br>
+ wp_tablet_tool.done event.<br>
+ </description><br>
+ <arg name="serial_id_msb" type="uint" summary="the unique serial number of the tool, most significant bits"/><br>
+ <arg name="serial_id_lsb" type="uint" summary="the unique serial number of the tool, least significant bits"/><br>
+ </event><br>
+<br>
+ <enum name="hardware_id_format"><br>
+ <description summary="the hardware id format"><br>
+ Specifies the format of the hardware id in the<br>
+ wp_tablet_tool.hardware_id event.<br>
+<br>
+ A wacom_stylus_id format indicates a hardware id as the id used by<br>
+ graphics tablet made by Wacom Inc. For example, on Wacom tablets the<br>
+ hardware id of a Grip Pen (a stylus) is 0x802.<br>
+ </description><br>
+ <entry name="wacom_stylus_id" value="0" /><br>
+ </enum><br>
+<br>
+ <event name="hardware_id"><br>
+ <description summary="hardware id notification"><br>
+ This event notifies the client of a hardware id available on this tool.<br>
+<br>
+ The hardware id is a device-specific 64-bit id that provides extra<br>
+ information about the tool in use, beyond the wl_tool.type<br>
+ enumeration. The format of the id is device-specific.<br>
+<br>
+ This event is sent in the initial burst of events before the<br>
+ wp_tablet_tool.done event.<br>
+ </description><br>
+ <arg name="format" type="uint" summary="the type of the id" /><br>
+ <arg name="hardware_id_msb" type="uint" summary="the hardware id, most significant bits"/><br>
+ <arg name="hardware_id_lsb" type="uint" summary="the hardware id, least significant bits"/><br>
+ </event><br>
+<br>
+<br>
+ <enum name="capability"><br>
+ <description summary="capability flags for a tool"><br>
+ Describes extra capabilities on a tablet.<br>
+<br>
+ Any tool must provide x and y values, extra axes are<br>
+ device-specific.<br>
+ </description><br>
+ <entry name="tilt" value="1" summary="Tilt axes"/><br>
+ <entry name="pressure" value="2" summary="Pressure axis"/><br>
+ <entry name="distance" value="3" summary="Distance axis"/><br>
+ </enum><br>
+<br>
+ <event name="capability"><br>
+ <description summary="tool capability notification"><br>
+ This event notifies the client of any capabilities of this tool,<br>
+ beyond the main set of x/y axes and tip up/down detection.<br>
+<br>
+ One event is sent for each extra capability available on this tool.<br>
+<br>
+ This event is sent in the initial burst of events before the<br>
+ wp_tablet_tool.done event.<br>
+ </description><br>
+ <arg name="capability" type="uint" summary="the capability"/><br>
+ </event><br>
+<br>
+ <event name="done"><br>
+ <description summary="tool description events sequence complete"><br>
+ This event signals the end of the initial burst of descriptive<br>
+ events. A client may consider the static description of the tool to<br>
+ be complete and finalize initialization of the tool.<br>
+ </description><br>
+ </event><br>
+<br>
+ <event name="removed"><br>
+ <description summary="tool removed"><br>
+ This event is sent when the tool is removed from the system. The client<br>
+ should not expect the resource it currently has associated with the<br>
+ tool to be used again if the tool comes back into proximity later.<br>
+<br>
+ It is compositor-dependent when a tool is removed. Some tools are<br>
+ associated with a single tablet only and may get removed when the<br>
+ respective tablet is removed. Other tools may be used on multiple<br>
+ tablets and removing a tablet may not remove this tool.<br>
+<br>
+ When this event is received, the client must wp_tablet_tool.destroy<br>
+ the object.<br>
+ </description><br>
+ </event><br>
+<br>
+ <event name="proximity_in"><br>
+ <description summary="proximity in event"><br>
+ Notification that this tool is focused on a certain surface.<br>
+<br>
+ This event can be received when the tool has moved from one surface to<br>
+ another, or when the tool has come back into proximity above the<br>
+ surface.<br>
+<br>
+ Any button events sent within the same wp_tablet.frame as a<br>
+ proximity_in event indicate the button state of the tool at the time<br>
+ of proximity in.<br>
+ </description><br>
+ <arg name="serial" type="uint"/><br>
+ <arg name="tablet" type="object" interface="zwp_tablet1" summary="The tablet the tool is in proximity of"/><br>
+ <arg name="surface" type="object" interface="wl_surface" summary="The current surface the tablet tool is over"/><br>
+ </event><br>
+<br>
+ <event name="proximity_out"><br>
+ <description summary="proximity out event"><br>
+ Notification that this tool has either left proximity, or is no<br>
+ longer focused on a certain surface.<br>
+<br>
+ When the tablet tool leaves proximity of the tablet, button release<br>
+ events are sent for each button that was held down at the time of<br>
+ leaving proximity. These events are sent in the same wp_tablet.frame<br>
+ of the proximity_out event.<br>
+<br>
+ If the tool stays within proximity of the tablet, but the focus<br>
+ changes from one surface to another, a button release event may not<br>
+ be sent until the button is actually released or the tool leaves the<br>
+ proximity of the tablet.<br>
+ </description><br>
+ </event><br>
+<br>
+ <event name="down"><br>
+ <description summary="tablet tool is making contact"><br>
+ Sent whenever the tablet tool comes in contact with the surface of the<br>
+ tablet. If the tablet tool moves out of a region while in contact with<br>
+ the surface of the tablet, the client owning said region will receive a<br>
+ wp_tablet::up event, followed by a wp_tablet::proximity_out event and a<br>
+ wp_tablet::frame event.<br>
+ </description><br>
+ <arg name="serial" type="uint"/><br>
+ </event><br>
+<br>
+ <event name="up"><br>
+ <description summary="tablet tool is no longer making contact"><br>
+ Sent whenever the tablet tool stops making contact with the surface of<br>
+ the tablet, or when the tablet tool moves off of a surface while it was<br>
+ making contact with the tablet's surface.<br>
+ </description><br>
+ </event><br>
+<br>
+ <event name="motion"><br>
+ <description summary="motion event"><br>
+ Sent whenever a tablet tool moves.<br>
+ </description><br>
+ <arg name="x" type="fixed" summary="surface-relative x coordinate"/><br>
+ <arg name="y" type="fixed" summary="surface-relative y coordinate"/><br>
+ </event><br>
+<br>
+ <event name="pressure"><br>
+ <description summary="pressure change event"><br>
+ Sent whenever the pressure axis on a tool changes. The value of this<br>
+ event is normalized to a value between 0 and 65535.<br>
+ </description><br>
+ <arg name="pressure" type="uint" summary="The current pressure value"/><br>
+ </event><br>
+<br>
+ <event name="distance"><br>
+ <description summary="distance change event"><br>
+ Sent whenever the distance axis on a tool changes. The value of this<br>
+ event is normalized to a value between 0 and 65535.<br>
+ </description><br>
+ <arg name="distance" type="uint" summary="The current distance value"/><br>
+ </event><br>
+<br>
+ <event name="tilt"><br>
+ <description summary="tilt change event"><br>
+ Sent whenever one or both of the tilt axes on a tool change. Each tilt<br>
+ value is normalized between -65535 and 65535.<br>
+ </description><br>
+ <arg name="tilt_x" type="int" summary="The current value of the X tilt axis"/><br>
+ <arg name="tilt_y" type="int" summary="The current value of the Y tilt axis"/><br>
+ </event><br>
+<br>
+ <enum name="button_state"><br>
+ <description summary="physical button state"><br>
+ Describes the physical state of a button which provoked the button event<br>
+ </description><br>
+ <entry name="released" value="0" summary="button is not pressed"/><br>
+ <entry name="pressed" value="1" summary="button is pressed"/><br>
+ </enum><br>
+<br>
+ <event name="button"><br>
+ <description summary="button event"><br>
+ Sent whenever a button on the stylus is pressed or released.<br>
+ </description><br>
+<br>
+ <arg name="serial" type="uint"/><br>
+ <arg name="button" type="uint" summary="The button whose state has changed"/><br>
+ <arg name="state" type="uint" summary="Whether the button was pressed or released"/><br>
+ </event><br>
+<br>
+ <event name="frame"><br>
+ <description summary="frame event"><br>
+ Marks the end of a series of axis and/or button updates from the<br>
+ tablet. The wayland protocol requires axis updates to be sent<br>
+ sequentially, however all events within a frame should be considered<br>
+ one hardware event.<br>
+ </description><br>
+ <arg name="time" type="uint" summary="The time of the event with millisecond granularity"/><br>
+ </event><br>
+<br>
+ <enum name="error"><br>
+ <entry name="role" value="0" summary="given wl_surface has another role"/><br>
+ </enum><br>
+ </interface><br>
+<br>
+ <interface name="zwp_tablet1" version="1"><br>
+ <description summary="graphics tablet device"><br>
+ The wp_tablet interface represents one graphics tablet device. The<br>
+ tablet interface itself does not generate events, all events are<br>
+ generated by wp_tablet_tool objects when in proximity above a tablet.<br>
+<br>
+ A tablet has a number of static characteristics, e.g. device name and<br>
+ pid/vid. These capabilities are sent in an event sequence after the<br>
+ wp_tablet_seat.tablet_added event. This initial event sequence is<br>
+ terminated by a wp_tablet.done event.<br>
+ </description><br>
+<br>
+ <request name="destroy" type="destructor"><br>
+ <description summary="destroy the tablet object"><br>
+ This destroys the client's resource for this tablet object.<br>
+<br>
+ A client must not issue this request until it receives a<br>
+ wp_tablet.remove event.<br>
+ </description><br>
+ </request><br>
+<br>
+ <event name="name"><br>
+ <description summary="tablet device name"><br>
+ This event is sent in the initial burst of events before the<br>
+ wp_tablet.done event.<br>
+ </description><br>
+ <arg name="name" type="string" summary="the device name"/><br>
+ </event><br>
+<br>
+ <event name="id"><br>
+ <description summary="tablet device vid/pid"><br>
+ This event is sent in the initial burst of events before the<br>
+ wp_tablet.done event.<br>
+ </description><br>
+ <arg name="vid" type="uint" summary="vendor id"/><br>
+ <arg name="pid" type="uint" summary="product id"/><br>
+ </event><br>
+<br>
+ <enum name="type"><br>
+ <description summary="tablet type"><br>
+ Describes the type of tablet<br>
+ </description><br>
+<br>
+ <entry name="external" value="0" summary="The tablet is an external tablet, such as an Intuos"/><br>
+ <entry name="internal" value="1" summary="The tablet is a built-in tablet, usually in a laptop"/><br>
+ <entry name="display" value="2" summary="The tablet is a display tablet, such as a Cintiq"/><br>
+ </enum><br>
+<br>
+ <event name="type"><br>
+ <description summary="the tablet type"><br>
+ This event is sent in the initial burst of events before the<br>
+ wp_tablet.done event.<br>
+ </description><br>
+ <arg name="type" type="uint" summary="the tablet type (internal, external, ...)"/><br>
+ </event><br>
+<br>
+ <event name="path"><br>
+ <description summary="path to the device"><br>
+ A system-specific device path that indicates which device is behind<br>
+ this wp_tablet. This information may be used to gather additional<br>
+ information about the device, e.g. through libwacom.<br>
+<br>
+ A device may have more than one device path, if so, multiple<br>
+ wp_tablet.path events are sent. A device may be emulated and not<br>
+ have a device path, in that case this event will not be sent.<br>
+<br>
+ The format of the path is unspecified, it may be a device node, a<br>
+ sysfs path, or some other identifier. It is up to the client to<br>
+ identify the string provided.<br>
+<br>
+ This event is sent in the initial burst of events before the<br>
+ wp_tablet.done event.<br>
+ </description><br>
+ <arg name="path" type="string" summary="path to local device"/><br>
+ </event><br>
+<br>
+ <event name="done"><br>
+ <description summary="tablet description events sequence complete"><br>
+ This event is sent immediately to signal the end of the initial<br>
+ burst of descriptive events. A client may consider the static<br>
+ description of the tablet to be complete and finalize initialization<br>
+ of the tablet.<br>
+ </description><br>
+ </event><br>
+<br>
+ <event name="removed"><br>
+ <description summary="tablet removed event"><br>
+ Sent when the tablet has been removed from the system. When a tablet<br>
+ is removed, some tools may be removed.<br>
+<br>
+ When this event is received, the client must wp_tablet.destroy<br>
+ the object.<br>
+ </description><br>
+ </event><br>
+ </interface><br>
+</protocol><br>
<span class="HOEnZb"><font color="#888888">--<br>
2.4.3<br>
<br>
_______________________________________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org">wayland-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
</font></span></blockquote></div><br></div>