pub fn update(&mut self) {
        match self.state {
            State::A => {
                self.events_b.clear();
                self.state = State::B;
                self.b_start_event_count = self.event_count;
            }
            State::B => {
                self.events_a.clear();
                self.state = State::A;
                self.a_start_event_count = self.event_count;
            }
        }
    }
/// Swaps the event buffers and clears the oldest event buffer. In general, this should be
/// called once per frame/update.
Swaps the event buffers and clears the oldest event buffer. In general, this should be
called once per frame/update.
Swaps the event buffers and clears the oldest event buffer . In general this should be called once per frame / update .
pub fn update(&mut self) {
        match self.state {
            State::A => {
                self.events_b.clear();
                self.state = State::B;
                self.b_start_event_count = self.event_count;
            }
            State::B => {
                self.events_a.clear();
                self.state = State::A;
                self.a_start_event_count = self.event_count;
            }
        }
    }
pub fn update ( & mut self ) { match self . state { State :: A => { self . events_b . clear ( ) ; self . state = State :: B ; self . b_start_event_count = self . event_count ; } State :: B => { self . events_a . clear ( ) ; self . state = State :: A ; self . a_start_event_count = self . event_count ; } } }
Swaps the event buffers and clears the oldest event buffer.
Swaps the event buffers and clears the oldest event buffer .
&mut self
&mut self