input system

This commit is contained in:
2026-08-07 01:32:21 -05:00
parent 07dfd7d3f4
commit 0d128c5724
29 changed files with 2295 additions and 325 deletions
+26 -4
View File
@@ -26,16 +26,38 @@ QtObject {
height: 540
visible: true
title: "nomad-bottom"
property string lastInputText: "none"
Connections {
target: inputManager
function onActionPressed(action) {
bottomWindow.lastInputText = inputManager.actionName(action) + " pressed"
}
function onActionReleased(action) {
bottomWindow.lastInputText = inputManager.actionName(action) + " released"
}
}
Rectangle {
anchors.fill: parent
color: "#181818"
Text {
Column {
anchors.centerIn: parent
text: "nomad bottom screen"
color: "white"
font.pixelSize: 50
spacing: 20
Text {
text: "nomad bottom screen"
color: "white"
font.pixelSize: 50
}
Text {
text: "last input: " + bottomWindow.lastInputText
color: "white"
font.pixelSize: 30
}
}
}
}