diff options
author | Antti Hölttä <AHoelttae@luxoft.com> | 2018-11-13 15:40:13 +0100 |
---|---|---|
committer | Antti Hölttä <AHoelttae@luxoft.com> | 2019-03-18 16:33:53 +0100 |
commit | c9a97de34ca56d4cab671beeeb6d27a66ac3da4e (patch) | |
tree | 652a2fc55284fa22506795eccb2e043aa18446b5 /plugin/cursornavigationattached.h | |
parent | 67dd94b0daecc445bbd3af7b5956ddcbdbdb5f39 (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.h | 3 |
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(); |