* add nlhomann json header * add get scene app fn * add get current binding and related logic * add save binding file to settings folder * apply binding fn added fixed uid bug * add button logic to QML, add enable Bind Setting * add finding logic for all custom bind * fix minor qml issues * fix get controllername bug, fix bug with save bind * fix regex issue * change webrequest for selectconfig * change to properly urlify path to send * fix race condition web requests * change steamvr tab qml formatting * change color scheme * change colors of icons to text color * change bind qml better for better ux * add possible workaround for space drag issues * add deact color to pushbutton * increment version * adjust button size in movecenter * move nlhomann json * fix PKGBUILD to include missing dependency (#606) (#613) It turns out qt5-websockets needs to be included for a successful build. Co-authored-by: James R <71466513+ColdIce1605@users.noreply.github.com> * fix warning * improved logging messages around perapp bindings * improve getsceneappID logging * add HMD based controller Finding * improve logging controller name * change logging around initial chaperone calibration * increment version * improve logging/error handling around sceneappid failures * added fallback for getting scene app by pid * update version string * update documentation Co-authored-by: James R <71466513+ColdIce1605@users.noreply.github.com>
51 lines
1.2 KiB
QML
51 lines
1.2 KiB
QML
import QtQuick 2.7
|
|
import QtQuick.Controls 2.0
|
|
import ovras.advsettings 1.0
|
|
|
|
TextField {
|
|
property int keyBoardUID: 0
|
|
property string savedText: ""
|
|
id: myTextField
|
|
color: "#d9dbe0"
|
|
text: ""
|
|
font.pointSize: 20
|
|
background: Button {
|
|
hoverEnabled: true
|
|
background: Rectangle {
|
|
color: parent.hovered ? "#484f5b" : "#2a2e35"
|
|
border.color: "#d9dbe0"
|
|
border.width: 2
|
|
}
|
|
onClicked: {
|
|
myTextField.forceActiveFocus()
|
|
}
|
|
}
|
|
onActiveFocusChanged: {
|
|
if (activeFocus) {
|
|
if (!OverlayController.desktopMode) {
|
|
OverlayController.showKeyboard(text, keyBoardUID)
|
|
} else {
|
|
savedText = text
|
|
}
|
|
}
|
|
}
|
|
onEditingFinished: {
|
|
if (OverlayController.desktopMode && savedText !== text) {
|
|
myTextField.onInputEvent(text)
|
|
}
|
|
}
|
|
function onInputEvent(input) {
|
|
text = input
|
|
}
|
|
Connections {
|
|
target: OverlayController
|
|
onKeyBoardInputSignal: {
|
|
if (userValue == keyBoardUID) {
|
|
if (myTextField.text !== input) {
|
|
myTextField.onInputEvent(input)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|