aboutsummaryrefslogtreecommitdiffstats
path: root/plugin/cursornavigationattached.h
diff options
context:
space:
mode:
authorAntti Hölttä <AHoelttae@luxoft.com>2018-11-13 15:40:13 +0100
committerAntti Hölttä <AHoelttae@luxoft.com>2019-03-18 16:33:53 +0100
commitc9a97de34ca56d4cab671beeeb6d27a66ac3da4e (patch)
tree652a2fc55284fa22506795eccb2e043aa18446b5 /plugin/cursornavigationattached.h
parent67dd94b0daecc445bbd3af7b5956ddcbdbdb5f39 (diff)
Add 360 algorithm
Add algorithm that allows navigation to any direction. Works somewhat well now. Example app has a page with a gamepad/stick support.
Diffstat (limited to 'plugin/cursornavigationattached.h')
-rw-r--r--plugin/cursornavigationattached.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/cursornavigationattached.h b/plugin/cursornavigationattached.h
index 344b4fa..ee32f76 100644
--- a/plugin/cursornavigationattached.h
+++ b/plugin/cursornavigationattached.h
@@ -40,7 +40,8 @@ public slots:
void setTrapsCursor(bool trapsCursor);
void setEscapeTarget(QQuickItem * escapeTarget);
- void move(int angle, float magnitude);
+ void move(qreal angle, qreal tolerance = 0);
+ void move(QVector2D vector, qreal tolerance = 0);
void moveUp();
void moveDown();
void moveRight();