1786004117
This commit is contained in:
@@ -47,6 +47,7 @@ impl Trekstor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
while self.accumulator > self.update_timestep {
|
while self.accumulator > self.update_timestep {
|
||||||
|
println!("Frame");
|
||||||
self.input.next_loop();
|
self.input.next_loop();
|
||||||
|
|
||||||
if !update(&mut self.screen, &self.input) {
|
if !update(&mut self.screen, &self.input) {
|
||||||
|
|||||||
@@ -46,7 +46,6 @@ impl InputState {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if self.clear_before_next_event {
|
if self.clear_before_next_event {
|
||||||
println!("Cleared");
|
|
||||||
self.keys_pressed_this_update.clear();
|
self.keys_pressed_this_update.clear();
|
||||||
self.keys_released_this_update.clear();
|
self.keys_released_this_update.clear();
|
||||||
self.clear_before_next_event = false;
|
self.clear_before_next_event = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user