blob: a279ef41695b0852003a7612e29671799c3b662a [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<protocol name="webos_tablet">
<copyright>
Copyright (c) 2018-2020 LG Electronics, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
SPDX-License-Identifier: Apache-2.0
</copyright>
<interface name="wl_webos_tablet" version="1">
<description summary="interface for handling tablet events">
This interface handles tablet events that is not implemented
in the standard protocol.
</description>
<enum name="pointer_type">
<description summary="pointer type">
Describes the type of the pointer.
</description>
<entry name="unknown" value="0"/>
<entry name="pen" value="1" />
<entry name="cursor" value="2"/>
<entry name="erase" value="3"/>
</enum>
<event name="tablet_event">
<description summary="tablet event">
Represents a tablet event containing various information.
Some value may not be available depending on the driver used.
</description>
<arg name="uniqueId" type="array" />
<arg name="pointerType" type="int" />
<arg name="buttons" type="int" />
<arg name="globalX" type="fixed" />
<arg name="globalY" type="fixed" />
<arg name="xTilt" type="int" />
<arg name="yTilt" type="int" />
<arg name="pressure" type="fixed" />
<arg name="rotation" type="fixed" />
</event>
</interface>
</protocol>