events are coming in. But my dual box thingy is not gonna be the way to go here. I guess it copied the data and they no longer link. Bummer

This commit is contained in:
2020-08-11 21:56:14 -07:00
parent 9719675465
commit 28565652c0
5 changed files with 65 additions and 11 deletions

View File

@@ -8,6 +8,7 @@ use vulkano::pipeline::vertex::Vertex;
use std::any::Any;
use crate::{VertexTypeContainer, Move, Geom};
use winit::event::Event;
use crate::util::tr_event::TrEvent;
/// Trait which may be inherited by objects that wish to be drawn to the screen
pub trait Drawable {
@@ -22,7 +23,7 @@ pub trait Drawable {
/// Trait which may be inherited by objects that wish to receive events
pub trait Eventable<T> {
fn notify(&mut self, event: &Event<T>) -> ();
fn notify(&mut self, event: &TrEvent<T>) -> ();
}
/// Trait which may be inherited by objects that wish to be updated