Struct amethyst_input::InputSystem [−][src]
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> where
AX: Hash + Eq,
AC: Hash + Eq, [src]
impl<AX, AC> InputSystem<AX, AC> where
AX: Hash + Eq,
AC: Hash + Eq, pub fn new(bindings: Option<Bindings<AX, AC>>) -> Self[src]
pub fn new(bindings: Option<Bindings<AX, AC>>) -> SelfCreate 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]
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, type SystemData = (Read<'a, EventChannel<Event>>, Write<'a, InputHandler<AX, AC>>, Write<'a, EventChannel<InputEvent<AC>>>)
The resource bundle required to execute this system. Read more
fn run(&mut self, (input, handler, output): Self::SystemData)[src]
fn run(&mut self, (input, handler, output): Self::SystemData)Executes the system with the required system data. Read more
fn setup(&mut self, res: &mut Resources)[src]
fn setup(&mut self, res: &mut Resources)Sets up the Resources using Self::SystemData::setup.
fn running_time(&self) -> RunningTime
fn running_time(&self) -> RunningTimeReturns 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
fn accessor(&'b self) -> AccessorCow<'a, 'b, Self>
fn accessor(&'b self) -> AccessorCow<'a, 'b, Self>Return the accessor from the [SystemData].
Auto Trait Implementations
impl<AX, AC> Send for InputSystem<AX, AC> where
AC: Send,
AX: Send,
impl<AX, AC> Send for InputSystem<AX, AC> where
AC: Send,
AX: Send, impl<AX, AC> Sync for InputSystem<AX, AC> where
AC: Sync,
AX: Sync,
impl<AX, AC> Sync for InputSystem<AX, AC> where
AC: Sync,
AX: Sync,