rydlrKE commited on
Commit
d73f6b8
·
verified ·
1 Parent(s): 0868661

Track playback and key toggle state

Browse files
Files changed (1) hide show
  1. kimodo/demo/state.py +2 -0
kimodo/demo/state.py CHANGED
@@ -38,6 +38,8 @@ class ClientSession:
38
  frame_idx: int = 0
39
  playing: bool = False
40
  playback_speed: float = DEFAULT_PLAYBACK_SPEED
 
 
41
  cur_duration: float = DEFAULT_CUR_DURATION
42
  max_frame_idx: int = 100 # will be updated based on model_fps
43
  updating_motions: bool = False
 
38
  frame_idx: int = 0
39
  playing: bool = False
40
  playback_speed: float = DEFAULT_PLAYBACK_SPEED
41
+ playback_time_accumulator: float = 0.0
42
+ last_space_toggle_time: float = 0.0
43
  cur_duration: float = DEFAULT_CUR_DURATION
44
  max_frame_idx: int = 100 # will be updated based on model_fps
45
  updating_motions: bool = False