redefined gilrs Events
parent
15c75d8baf
commit
bee9ae2a41
|
@ -7,6 +7,7 @@ use gilrs::Gilrs;
|
||||||
use glow::HasContext;
|
use glow::HasContext;
|
||||||
|
|
||||||
use bevy_ecs::prelude::*;
|
use bevy_ecs::prelude::*;
|
||||||
|
use gilrs::Event as GEvent;
|
||||||
|
|
||||||
use gui::Gui;
|
use gui::Gui;
|
||||||
use winit::event::{Event, WindowEvent};
|
use winit::event::{Event, WindowEvent};
|
||||||
|
@ -154,7 +155,7 @@ fn main() {
|
||||||
// TESTING
|
// TESTING
|
||||||
// TODO
|
// TODO
|
||||||
|
|
||||||
while let Some(Event { id, event, time }) = gilrs.next_event() {
|
while let Some(GEvent { id, event, time }) = gilrs.next_event() {
|
||||||
println!("{:?} New Event from {}: {:?}", time, id, event);
|
println!("{:?} New Event from {}: {:?}", time, id, event);
|
||||||
}
|
}
|
||||||
match event {
|
match event {
|
||||||
|
|
Loading…
Reference in New Issue