1
0
Fork 0

Remove Interval event

This commit is contained in:
Billy Messenger 2020-09-11 11:49:56 -05:00
parent 52580cc2a9
commit e67887d92f
2 changed files with 0 additions and 2 deletions

View file

@ -24,7 +24,6 @@ impl WindowHandler for MyProgram {
fn on_event(&mut self, window: &mut Window, event: Event) { fn on_event(&mut self, window: &mut Window, event: Event) {
match event { match event {
Event::Interval(delta_time) => println!("Update interval, delta time: {}", delta_time),
Event::Mouse(e) => println!("Mouse event: {:?}", e), Event::Mouse(e) => println!("Mouse event: {:?}", e),
Event::Keyboard(e) => println!("Keyboard event: {:?}", e), Event::Keyboard(e) => println!("Keyboard event: {:?}", e),
Event::Window(e) => println!("Window event: {:?}", e), Event::Window(e) => println!("Window event: {:?}", e),

View file

@ -103,7 +103,6 @@ pub enum FileDropEvent {
#[derive(Debug)] #[derive(Debug)]
pub enum Event { pub enum Event {
Interval(f64), // delta time passed
Mouse(MouseEvent), Mouse(MouseEvent),
Keyboard(KeyboardEvent), Keyboard(KeyboardEvent),
Window(WindowEvent), Window(WindowEvent),