Struct amethyst_input::InputSystem
[−]
[src]
pub struct InputSystem<AX, AC> { /* fields omitted */ }
Input system
Will read winit::Event
from EventHandler<winit::Event>
, process them with InputHandler
,
and push the results in EventHandler<InputEvent>
.
Methods
impl<AX, AC> InputSystem<AX, AC>
[src]
fn new(reader: ReaderId<Event>) -> Self
[src]
Create a new input system. Needs a reader id for EventHandler<winit::Event>
.
Trait Implementations
impl<'a, AX, AC> System<'a> for InputSystem<AX, AC> where
AX: Hash + Eq + Clone + Send + Sync + 'static,
AC: Hash + Eq + Clone + Send + Sync + 'static,
[src]
AX: Hash + Eq + Clone + Send + Sync + 'static,
AC: Hash + Eq + Clone + Send + Sync + 'static,
type SystemData = (Fetch<'a, EventChannel<Event>>, FetchMut<'a, InputHandler<AX, AC>>, FetchMut<'a, EventChannel<InputEvent<AC>>>)
The resource bundle required to execute this system. Read more
fn run(&mut self, (input, handler, output): Self::SystemData)
[src]
Executes the system with the required system data. Read more
fn running_time(&self) -> RunningTime
Returns a hint how long the system needs for running. This is used to optimize the way they're executed (might allow more parallelization). Read more