Remove Interval event
This commit is contained in:
parent
52580cc2a9
commit
e67887d92f
|
@ -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),
|
||||||
|
|
|
@ -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),
|
||||||
|
|
Loading…
Reference in a new issue