5.8.17 (#701)
* fix recenter behavior * temp fix issues * increment version to dev * Fix autosave profile initialization, fix openxr movement up/down, allow using space fix in openxr state * adjusted logging to reduce spam * removed unused variable * added delay to openxr space drag to improve performance and stop ovr api calls * add logging for debugging issues * improved log verbage * fix wrong fn call error * typemismatch error fix * add default frame bindings * openXR space drag skip frames increased 3->5, performance still not great * remove chaperone universe checking completely, we shouldn't need any features * fix compiler warnings * update version string to rel * fix chaperone moving on recenter, fix log spam * increment version and back to dev * clarify log * change to release * fix openxr space drag issues * remove commented code around openxr * increment version * change how desktop mode displays from URL to steam setting window * updated openvr to 2.15.6 * increment version * moved openxr fix to seated mode * removed calibration state log calls, as without context they aren't particularly useful * increment version 5.8.16 * remove uncessary logging * switch keyboard over to instant input instead of buffered * Fix Edge Cases around keyboard submit, remove permissive compile options * increment version
This commit is contained in:
@@ -5,6 +5,7 @@ import ovras.advsettings 1.0
|
||||
TextField {
|
||||
property int keyBoardUID: 0
|
||||
property string savedText: ""
|
||||
property bool active: false
|
||||
id: myTextField
|
||||
color: "#d9dbe0"
|
||||
text: ""
|
||||
@@ -18,19 +19,25 @@ TextField {
|
||||
}
|
||||
onClicked: {
|
||||
myTextField.forceActiveFocus()
|
||||
active = true;
|
||||
}
|
||||
}
|
||||
onActiveFocusChanged: {
|
||||
if (activeFocus) {
|
||||
active = true;
|
||||
if (!OverlayController.desktopMode) {
|
||||
OverlayController.showKeyboard(text, keyBoardUID)
|
||||
} else {
|
||||
savedText = text
|
||||
}
|
||||
//savedText = text
|
||||
}
|
||||
//When box loses focus apply changes
|
||||
else{
|
||||
myTextField.onInputEvent(text)
|
||||
active = false;
|
||||
}
|
||||
}
|
||||
onEditingFinished: {
|
||||
if (OverlayController.desktopMode && savedText !== text) {
|
||||
if(OverlayController.desktopMode){
|
||||
myTextField.onInputEvent(text)
|
||||
}
|
||||
}
|
||||
@@ -39,11 +46,47 @@ TextField {
|
||||
}
|
||||
Connections {
|
||||
target: OverlayController
|
||||
|
||||
onSubmitLastTextField:{
|
||||
//value here is UID
|
||||
if(value == 0){
|
||||
active = false;
|
||||
return;
|
||||
}
|
||||
|
||||
if(value == keyBoardUID && active == true){
|
||||
myTextField.onInputEvent(text)
|
||||
active = false;
|
||||
}
|
||||
}
|
||||
|
||||
onKeyBoardInputSignal: {
|
||||
if (userValue == keyBoardUID) {
|
||||
if (myTextField.text !== input) {
|
||||
myTextField.onInputEvent(input)
|
||||
if(input == '\b'){
|
||||
myTextField.text = text.slice(0,-1)
|
||||
return
|
||||
}
|
||||
else if(input == '\e'){
|
||||
myTextField.text = text.slice(0,cursorPosition)+text.slice(cursorposition+1)
|
||||
return;
|
||||
}
|
||||
//Execute input
|
||||
else if(input == '\n'){
|
||||
if(!OverlayController.desktopMode){
|
||||
//myTextField.onInputEvent(input)
|
||||
myTextField.focus = false;
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if(input=='\r'){
|
||||
return;
|
||||
}
|
||||
else{
|
||||
myTextField.text = text + input;
|
||||
}
|
||||
//if (myTextField.text !== input) {
|
||||
// myTextField.onInputEvent(input)
|
||||
//}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user