summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>2012-01-13 17:37:49 +0200
committerJørgen Lind <jorgen.lind@nokia.com>2012-01-13 17:28:40 +0100
commit27f9b7e3d26df8a33b86161d91ddeb8f80ffa4e3 (patch)
tree6ad54bf41935598657c27e099ad79fe05ceebfd6 /extensions
parent2fcfaf58e68e1bad67057bae39e194884a445f4b (diff)
Introduce a touch protocol extension.
Using this opt-in protocol extension all data from QTouchEvent will properly be delivered to the clients. By default compositors will still use the standard and limited protocol for touch events to remain compatible with non-Qt clients. However by calling enableTouchExtension() in the compositor, touch events will be sent through the new protocol and thus Qt clients will receive proper QTouchEvents. Non-Qt clients will get no touch data in this mode. The contents of the rawScreenPositions() list are not yet delivered as the size implications remain to be checked. Change-Id: I981b9c4d44ea808a95b770bf948320abd47fc036 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/touch-extension.xml77
1 files changed, 77 insertions, 0 deletions
diff --git a/extensions/touch-extension.xml b/extensions/touch-extension.xml
new file mode 100644
index 000000000..a70fc13d1
--- /dev/null
+++ b/extensions/touch-extension.xml
@@ -0,0 +1,77 @@
+<!--
+# /****************************************************************************
+# **
+# ** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
+# ** Contact: Nokia Corporation (qt-info@nokia.com)
+# **
+# ** This file is part of qt-compositor.
+# **
+# ****************************************************************************/
+-->
+<protocol name="touch_extension">
+
+ <copyright>
+ Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
+ All rights reserved.
+ Contact: Nokia Corporation (qt-info@nokia.com)
+
+ This file is part of the plugins of the Qt Toolkit.
+
+ $QT_BEGIN_LICENSE:LGPL$
+ GNU Lesser General Public License Usage
+ This file may be used under the terms of the GNU Lesser General Public
+ License version 2.1 as published by the Free Software Foundation and
+ appearing in the file LICENSE.LGPL included in the packaging of this
+ file. Please review the following information to ensure the GNU Lesser
+ General Public License version 2.1 requirements will be met:
+ http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+
+ In addition, as a special exception, Nokia gives you certain additional
+ rights. These rights are described in the Nokia Qt LGPL Exception
+ version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+
+ GNU General Public License Usage
+ Alternatively, this file may be used under the terms of the GNU General
+ Public License version 3.0 as published by the Free Software Foundation
+ and appearing in the file LICENSE.GPL included in the packaging of this
+ file. Please review the following information to ensure the GNU General
+ Public License version 3.0 requirements will be met:
+ http://www.gnu.org/copyleft/gpl.html.
+
+ Other Usage
+ Alternatively, this file may be used in accordance with the terms and
+ conditions contained in a signed written agreement between you and Nokia.
+
+
+
+
+
+ $QT_END_LICENSE$
+ </copyright>
+
+ <interface name="wl_touch" version="1">
+ <event name="touch">
+ <arg name="time" type="uint" />
+ <arg name="id" type="uint" />
+ <arg name="state" type="uint" />
+ <arg name="x" type="int" />
+ <arg name="y" type="int" />
+ <arg name="normalized_x" type="int" />
+ <arg name="normalized_y" type="int" />
+ <arg name="width" type="int" />
+ <arg name="height" type="int" />
+ <arg name="pressure" type="uint" />
+ <arg name="velocity_x" type="int" />
+ <arg name="velocity_y" type="int" />
+ <arg name="flags" type="uint" />
+ <arg name="rawdata" type="array" />
+ </event>
+
+ <event name="touch_frame">
+ </event>
+
+ <request name="dummy">
+ </request>
+
+ </interface>
+</protocol>