Patch WMR Floor Fix and add Force Bounds on motion (#237)

* Update FixFloorTabController.cpp

Adds an extra offsets tab reset after floor fix to make sure the fix is visible for WMR users.

* Add Force Bounds on Motion

Adds forcing chaperone bounds on space-turn and space-drag. Addresses #183

* Update Motion Page Screenshot for Force Bounds

* Update docs for Force Bounds on motion options
This commit is contained in:
Kung-vr
2019-07-03 15:15:18 -05:00
committed by ykeara
parent 4181b03232
commit 01a6d8d361
7 changed files with 144 additions and 12 deletions
@@ -34,7 +34,7 @@ GroupBox {
MyToggleButton {
id: moveShortcutLeft
text: "Enable Left Hand"
text: "Left Hand"
onCheckedChanged: {
MoveCenterTabController.moveShortcutLeft = this.checked
}
@@ -42,7 +42,7 @@ GroupBox {
MyToggleButton {
id: moveShortcutRight
text: "Enable Right Hand"
text: "Right Hand"
onCheckedChanged: {
MoveCenterTabController.moveShortcutRight = this.checked
}
@@ -53,7 +53,7 @@ GroupBox {
}
MyText {
text: "Drag Comfort Mode:"
text: "Comfort Mode:"
horizontalAlignment: Text.AlignRight
Layout.rightMargin: 10
}
@@ -64,7 +64,7 @@ GroupBox {
to: 10
stepSize: 1
value: 0
Layout.preferredWidth: 200
Layout.preferredWidth: 180
Layout.alignment: Qt.AlignVCenter | Qt.AlignRight
onValueChanged: {
dragComfortText.text = dragComfortSlider.value
@@ -79,6 +79,14 @@ GroupBox {
Layout.preferredWidth: 30
Layout.rightMargin: 10
}
MyToggleButton {
id: dragBounds
text: "Force Bounds"
onCheckedChanged: {
MoveCenterTabController.dragBounds = this.checked
}
}
}
}
@@ -86,6 +94,7 @@ GroupBox {
moveShortcutLeft.checked = MoveCenterTabController.moveShortcutLeft
moveShortcutRight.checked = MoveCenterTabController.moveShortcutRight
dragComfortSlider.value = MoveCenterTabController.dragComfortFactor
dragBounds.checked = MoveCenterTabController.dragBounds
}
Connections {
@@ -100,5 +109,8 @@ GroupBox {
onDragComfortFactorChanged: {
dragComfortSlider.value = MoveCenterTabController.dragComfortFactor
}
onDragBoundsChanged: {
dragBounds.checked = MoveCenterTabController.dragBounds
}
}
}
@@ -34,7 +34,7 @@ GroupBox {
MyToggleButton {
id: turnBindLeft
text: "Enable Left Hand"
text: "Left Hand"
onCheckedChanged: {
MoveCenterTabController.turnBindLeft = this.checked
}
@@ -42,7 +42,7 @@ GroupBox {
MyToggleButton {
id: turnBindRight
text: "Enable Right Hand"
text: "Right Hand"
onCheckedChanged: {
MoveCenterTabController.turnBindRight = this.checked
}
@@ -53,7 +53,7 @@ GroupBox {
}
MyText {
text: "Turn Comfort Mode:"
text: "Comfort Mode:"
horizontalAlignment: Text.AlignRight
Layout.rightMargin: 10
}
@@ -64,7 +64,7 @@ GroupBox {
to: 10
stepSize: 1
value: 0
Layout.preferredWidth: 200
Layout.preferredWidth: 180
Layout.alignment: Qt.AlignVCenter | Qt.AlignRight
onValueChanged: {
turnComfortText.text = turnComfortSlider.value
@@ -79,6 +79,14 @@ GroupBox {
Layout.preferredWidth: 30
Layout.rightMargin: 10
}
MyToggleButton {
id: turnBounds
text: "Force Bounds"
onCheckedChanged: {
MoveCenterTabController.turnBounds = this.checked
}
}
}
}
@@ -86,6 +94,7 @@ GroupBox {
turnBindLeft.checked = MoveCenterTabController.turnBindLeft
turnBindRight.checked = MoveCenterTabController.turnBindRight
turnComfortSlider.value = MoveCenterTabController.turnComfortFactor
turnBounds.checked = MoveCenterTabController.turnBounds
}
Connections {
@@ -100,5 +109,8 @@ GroupBox {
onTurnComfortFactorChanged: {
turnComfortSlider.value = MoveCenterTabController.turnComfortFactor
}
onTurnBoundsChanged: {
turnBounds.checked = MoveCenterTabController.turnBounds
}
}
}