need to add gamepad events

This commit is contained in:
2020-07-30 23:54:04 -07:00
parent 0cce359c28
commit 55899f26ad
4 changed files with 40 additions and 10 deletions

18
src/util/tr_event.rs Normal file
View File

@@ -0,0 +1,18 @@
use winit::window::WindowId;
use winit::event::{WindowEvent, DeviceId, DeviceEvent};
enum TrEvent {
// WindowEvent {
// window_id: WindowId,
// event: WindowEvent<'a>,
// },
/// Emitted when the OS sends an event to a device.
DeviceEvent {
device_id: DeviceId,
event: DeviceEvent,
},
}