event work + mulling over sprite containers and event notification

This commit is contained in:
2020-07-31 23:39:25 -07:00
parent 55899f26ad
commit 8da810f23a
10 changed files with 149 additions and 75 deletions

View File

@@ -1,18 +1,18 @@
use winit::window::WindowId;
use winit::event::{WindowEvent, DeviceId, DeviceEvent};
use winit::event::{WindowEvent, DeviceId, DeviceEvent, KeyboardInput, ModifiersState, MouseScrollDelta, TouchPhase, ElementState, MouseButton, AxisId, Touch};
use std::path::PathBuf;
use winit::dpi::{PhysicalPosition, PhysicalSize};
use gilrs::Event as GilEvent;
enum TrEvent {
pub enum TrEvent {
MouseHeldEvent {
// WindowEvent {
// window_id: WindowId,
// event: WindowEvent<'a>,
// },
/// Emitted when the OS sends an event to a device.
DeviceEvent {
device_id: DeviceId,
event: DeviceEvent,
},
KeyHeldEvent {
},
GamepadEvent {
gil_event: GilEvent,
}
}