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,
AC: Hash + Eq,
[src]
impl<AX, AC> InputBundle<AX, AC> where
AX: Hash + Eq,
AC: Hash + Eq,
pub fn new() -> Self
[src]
pub fn new() -> Self
Create 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>) -> Self
Use the provided bindings with the InputHandler
pub fn with_bindings_from_file<P: AsRef<Path>>(
self,
file: P
) -> StdResult<Self, ConfigError> where
AX: DeserializeOwned + Serialize,
AC: DeserializeOwned + Serialize,
[src]
pub fn with_bindings_from_file<P: AsRef<Path>>(
self,
file: P
) -> StdResult<Self, ConfigError> where
AX: DeserializeOwned + Serialize,
AC: DeserializeOwned + Serialize,
Load bindings from file
Trait Implementations
impl<AX, AC> Default for InputBundle<AX, AC> where
AX: Hash + Eq,
AC: Hash + Eq,
[src]
impl<AX, AC> Default for InputBundle<AX, AC> where
AX: Hash + Eq,
AC: Hash + Eq,
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,