set up decoding of pause timer events

This commit is contained in:
Nickiel12 2022-06-29 19:54:07 -07:00
parent c43c1a8edd
commit 7a216c36b2

View file

@ -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)}
}
},