diff options
| author | yum <yum.food.vr@gmail.com> | 2022-12-20 22:21:44 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2022-12-20 22:30:11 -0800 |
| commit | 29070e5e68a0fef0cf8de2d5e4443bf04c00f340 (patch) | |
| tree | fe093f1b0fc3c3c12a46f2a9805c85d0c9f07d7b /Scripts/osc_ctrl.py | |
| parent | ac69366dccaf377d20f029b4b58bac2314f61159 (diff) | |
Control tweak: introduce long/short hold behavior
The typical use pattern is now possible without entering radial.
Leaving mounted to the world for a long time is no longer possible.
Maybe I need an override param?
Left joystick controls:
* Short press toggle 1: show board, lock to hand, start transcribing
* Short press toggle 2: lock to world, stop transcribing
* Long press: hide board, stop transcribing
Diffstat (limited to 'Scripts/osc_ctrl.py')
| -rw-r--r-- | Scripts/osc_ctrl.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Scripts/osc_ctrl.py b/Scripts/osc_ctrl.py index 34d1a36..a7dcc2b 100644 --- a/Scripts/osc_ctrl.py +++ b/Scripts/osc_ctrl.py @@ -329,6 +329,14 @@ def clear(client, tx_state): tx_state.last_msg_encoded = [] +def lockWorld(client, lock: bool): + addr = "/avatar/parameters/" + generate_utils.getLockWorldParam() + client.send_message(addr, lock) + +def toggleBoard(client, show: bool): + addr = "/avatar/parameters/" + generate_utils.getToggleParam() + client.send_message(addr, show) + def indicateSpeech(client, is_speaking: bool): addr = "/avatar/parameters/" + generate_utils.getIndicator0Param() client.send_message(addr, is_speaking) |
