set up decoding of pause timer events
This commit is contained in:
parent
c43c1a8edd
commit
7a216c36b2
1 changed files with 4 additions and 0 deletions
|
@ -80,6 +80,10 @@ impl StateUpdate {
|
||||||
if incoming_json["data"] == "hotkey" {StateUpdate::ChangeSlide(SlideChange::PreviousHotkey)}
|
if incoming_json["data"] == "hotkey" {StateUpdate::ChangeSlide(SlideChange::PreviousHotkey)}
|
||||||
else {StateUpdate::ChangeSlide(SlideChange::PreviousApp)}}
|
else {StateUpdate::ChangeSlide(SlideChange::PreviousApp)}}
|
||||||
//Unimplemented
|
//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)}
|
_ => {panic!("trying to use a button type I don't know!: {}", value)}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue