redefined gilrs Events

master
Milk.H 2024-05-08 14:24:04 +02:00
parent 15c75d8baf
commit bee9ae2a41
Signed by: milk
GPG Key ID: 1C656AF758F96101
1 changed files with 2 additions and 1 deletions

View File

@ -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 {