From 2daa2c8057cf036357a64e09925487e6f5c0025e Mon Sep 17 00:00:00 2001 From: yum Date: Mon, 28 Aug 2023 20:09:35 -0700 Subject: Switch back to openvr openxr doesn't have any notion of background process, making it unusable trash :) --- Scripts/transcribe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Scripts/transcribe.py') 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. -- cgit v1.2.3