diff options
Diffstat (limited to 'DemoApplication/pages/Page6.qml')
-rw-r--r-- | DemoApplication/pages/Page6.qml | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/DemoApplication/pages/Page6.qml b/DemoApplication/pages/Page6.qml index a90857f..ece82ba 100644 --- a/DemoApplication/pages/Page6.qml +++ b/DemoApplication/pages/Page6.qml @@ -16,36 +16,6 @@ Item { repeat: false } - Gamepad { - deviceId: GamepadManager.connectedGamepads.length > 0 ? GamepadManager.connectedGamepads[0] : -1 - - function handleMove() { - var v = Qt.vector2d(axisLeftX, axisLeftY) - if (v.length() >= 0.99 && !cooldownTimer.running) { - //console.log("handle joystick move, v=" + v) - parent.CursorNavigation.moveCursor(Qt.vector2d(axisLeftX, axisLeftY), 10) - cooldownTimer.start() - } else if (v.length() >= 0.1) { - var item = parent.CursorNavigation.find(v, 10) - //cooldownTimer.start() - if (item != undefined) { - pointerRect.x = item.x - pointerRect.y = item.y - pointerRect.width = item.width+10 - pointerRect.height = item.height+10 - pointerRect.radius = item.width/2+5 - pointerRect.visible = true - } - } else { - pointerRect.visible = false - } - } - - onAxisLeftXChanged: handleMove() - onAxisLeftYChanged: handleMove() - } - - Plugin { id: mapPlugin name: "esri" //"osm", "mapboxgl", "esri", ... |