summaryrefslogtreecommitdiffstats
path: root/Scripts/transcribe.py
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2023-08-28 20:09:35 -0700
committeryum <yum.food.vr@gmail.com>2023-08-28 20:09:35 -0700
commit2daa2c8057cf036357a64e09925487e6f5c0025e (patch)
tree226e7be8da04ed8ceea186ebcfae0551e9d14b77 /Scripts/transcribe.py
parent302f7ba09f2ee115d0ee4b8f0841f6ffcd50ec57 (diff)
Switch back to openvr
openxr doesn't have any notion of background process, making it unusable trash :)
Diffstat (limited to 'Scripts/transcribe.py')
-rw-r--r--Scripts/transcribe.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Scripts/transcribe.py b/Scripts/transcribe.py
index 4b00bd0..5301b0b 100644
--- a/Scripts/transcribe.py
+++ b/Scripts/transcribe.py
@@ -616,7 +616,7 @@ def readControllerInput(audio_state, enable_local_beep: bool,
time.sleep(0.01)
event = next(button_generator)
- if event == steamvr.EVENT_RISING_EDGE:
+ if event.opcode == steamvr.EVENT_RISING_EDGE:
last_rising = time.time()
if state == PAUSE_STATE:
@@ -625,7 +625,7 @@ def readControllerInput(audio_state, enable_local_beep: bool,
audio_state.drop_transcription = True
audio_state.audio_paused = False
- elif event == steamvr.EVENT_FALLING_EDGE:
+ elif event.opcode == steamvr.EVENT_FALLING_EDGE:
now = time.time()
if now - last_rising > 1.5:
# Long press: treat as the end of transcription.