summaryrefslogtreecommitdiffstats
path: root/src/datavis3d/input/qtouch3dinputhandler.h
diff options
context:
space:
mode:
authorKeränen Pasi <pasi.keranen@digia.com>2013-08-22 13:22:21 +0300
committerPasi Keränen <pasi.keranen@digia.com>2013-08-23 09:33:19 +0300
commit9db025fbc86e54c72abebf4ef3a146b372ac9e5e (patch)
tree44045036e84effe3b6cf78dbca0792955d0e53c5 /src/datavis3d/input/qtouch3dinputhandler.h
parent44f83ac64537ca6ac13a97a2c267492bdd288fe7 (diff)
First implementation of new input handling. Not integrated yet.
Change-Id: I8be494bf072926f4bd9db32572678bf7a4ea674a Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'src/datavis3d/input/qtouch3dinputhandler.h')
-rw-r--r--src/datavis3d/input/qtouch3dinputhandler.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/datavis3d/input/qtouch3dinputhandler.h b/src/datavis3d/input/qtouch3dinputhandler.h
new file mode 100644
index 00000000..a56f82ce
--- /dev/null
+++ b/src/datavis3d/input/qtouch3dinputhandler.h
@@ -0,0 +1,41 @@
+/****************************************************************************
+**
+** Copyright (C) 2013 Digia Plc
+** All rights reserved.
+** For any questions to Digia, please use contact form at http://qt.digia.com
+**
+** This file is part of the QtDataVis3D module.
+**
+** Licensees holding valid Qt Enterprise licenses may use this file in
+** accordance with the Qt Enterprise License Agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia.
+**
+** If you have questions regarding the use of this file, please use
+** contact form at http://qt.digia.com
+**
+****************************************************************************/
+
+#ifndef QTOUCH3DINPUTHANDLER_H
+#define QTOUCH3DINPUTHANDLER_H
+
+#include "q3dinputhandler.h"
+
+QT_DATAVIS3D_BEGIN_NAMESPACE
+
+class QTouch3DInputHandler : public Q3DInputHandler
+{
+ Q_OBJECT
+
+public:
+ explicit QTouch3DInputHandler();
+
+ // Input event listeners
+ virtual void mouseDoubleClickEvent(QMouseEvent *event);
+ virtual void touchEvent(QTouchEvent *event);
+ virtual void mousePressEvent(QMouseEvent *event, const QPoint &mousePos);
+};
+
+QT_DATAVIS3D_END_NAMESPACE
+
+#endif // QTOUCH3DINPUTHANDLER_H