Struct amethyst_input::InputSystem[][src]

pub struct InputSystem<AX, AC> where
    AX: Hash + Eq,
    AC: Hash + Eq
{ /* 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> where
    AX: Hash + Eq,
    AC: Hash + Eq
[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]

The resource bundle required to execute this system. Read more

Executes the system with the required system data. Read more

Sets up the Resources using Self::SystemData::setup.

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

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> Sync for InputSystem<AX, AC> where
    AC: Sync,
    AX: Sync