Struct amethyst_input::InputBundle [−][src]
Bundle for adding the InputHandler.
This also adds the Winit EventHandler and the InputEvent
Type parameters
AX: The type used to identify input axes. AC: The type used to identify input actions.
String is appropriate for either of these if you don't know what to use.
Errors
No errors returned from this bundle.
Methods
impl<AX, AC> InputBundle<AX, AC> where
AX: Hash + Eq + DeserializeOwned + Serialize + Default,
AC: Hash + Eq + DeserializeOwned + Serialize + Default, [src]
impl<AX, AC> InputBundle<AX, AC> where
AX: Hash + Eq + DeserializeOwned + Serialize + Default,
AC: Hash + Eq + DeserializeOwned + Serialize + Default, pub fn new() -> Self[src]
pub fn new() -> SelfCreate a new input bundle with no bindings
pub fn with_bindings(self, bindings: Bindings<AX, AC>) -> Self[src]
pub fn with_bindings(self, bindings: Bindings<AX, AC>) -> SelfUse the provided bindings with the InputHandler
pub fn with_bindings_from_file<P: AsRef<Path>>(self, file: P) -> Self[src]
pub fn with_bindings_from_file<P: AsRef<Path>>(self, file: P) -> SelfLoad bindings from file
Trait Implementations
impl<AX: Default, AC: Default> Default for InputBundle<AX, AC> where
AX: Hash + Eq,
AC: Hash + Eq, [src]
impl<AX: Default, AC: Default> Default for InputBundle<AX, AC> where
AX: Hash + Eq,
AC: Hash + Eq, fn default() -> InputBundle<AX, AC>[src]
fn default() -> InputBundle<AX, AC>Returns the "default value" for a type. Read more
impl<'a, 'b, AX, AC> SystemBundle<'a, 'b> for InputBundle<AX, AC> where
AX: Hash + Eq + Clone + Send + Sync + 'static,
AC: Hash + Eq + Clone + Send + Sync + 'static, [src]
impl<'a, 'b, AX, AC> SystemBundle<'a, 'b> for InputBundle<AX, AC> where
AX: Hash + Eq + Clone + Send + Sync + 'static,
AC: Hash + Eq + Clone + Send + Sync + 'static, Auto Trait Implementations
impl<AX, AC> Send for InputBundle<AX, AC> where
AC: Send,
AX: Send,
impl<AX, AC> Send for InputBundle<AX, AC> where
AC: Send,
AX: Send, impl<AX, AC> Sync for InputBundle<AX, AC> where
AC: Sync,
AX: Sync,
impl<AX, AC> Sync for InputBundle<AX, AC> where
AC: Sync,
AX: Sync,