From 7a216c36b2214ca1821bf796064228852b3bd3a0 Mon Sep 17 00:00:00 2001 From: Nickiel12 <35903114+Nickiel12@users.noreply.github.com> Date: Wed, 29 Jun 2022 19:54:07 -0700 Subject: [PATCH] set up decoding of pause timer events --- src/modules/stream_states/state_update.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/stream_states/state_update.rs b/src/modules/stream_states/state_update.rs index 4526996..d35ff36 100644 --- a/src/modules/stream_states/state_update.rs +++ b/src/modules/stream_states/state_update.rs @@ -80,6 +80,10 @@ impl StateUpdate { if incoming_json["data"] == "hotkey" {StateUpdate::ChangeSlide(SlideChange::PreviousHotkey)} else {StateUpdate::ChangeSlide(SlideChange::PreviousApp)}} //Unimplemented + "Pause_Timer" => { + if incoming_json["data"] == "true" {StateUpdate::PauseTimer(true)} + else {StateUpdate::PauseTimer(false)} + } _ => {panic!("trying to use a button type I don't know!: {}", value)} } },