input system
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user