[−][src]Struct amethyst_input::InputBundle
Bundle for adding the InputHandler
.
This also adds the Winit EventHandler and the InputEvent<T>
EventHandler
where T::Action
is the type for Actions you have assigned here.
Type parameters
T: The type used to identify input binding types.
String is appropriate for either of these if you don't know what to use.
Errors
No errors returned from this bundle.
Methods
impl<T: BindingTypes> InputBundle<T>
[src]
pub fn new() -> Self
[src]
Create a new input bundle with no bindings
pub fn with_bindings(self, bindings: Bindings<T>) -> Self
[src]
Use the provided bindings with the InputHandler
pub fn with_bindings_from_file<P: AsRef<Path>>(
self,
file: P
) -> Result<Self, BindingsFileError<T>> where
Bindings<T>: Config,
[src]
self,
file: P
) -> Result<Self, BindingsFileError<T>> where
Bindings<T>: Config,
Load bindings from file
Trait Implementations
impl<T: BindingTypes> Default for InputBundle<T>
[src]
impl<T: Debug + BindingTypes> Debug for InputBundle<T>
[src]
impl<'a, 'b, T: BindingTypes> SystemBundle<'a, 'b> for InputBundle<T>
[src]
Auto Trait Implementations
impl<T> Unpin for InputBundle<T> where
<T as BindingTypes>::Action: Unpin,
<T as BindingTypes>::Axis: Unpin,
<T as BindingTypes>::Action: Unpin,
<T as BindingTypes>::Axis: Unpin,
impl<T> Sync for InputBundle<T> where
<T as BindingTypes>::Action: Sync,
<T as BindingTypes>::Axis: Sync,
<T as BindingTypes>::Action: Sync,
<T as BindingTypes>::Axis: Sync,
impl<T> Send for InputBundle<T> where
<T as BindingTypes>::Action: Send,
<T as BindingTypes>::Axis: Send,
<T as BindingTypes>::Action: Send,
<T as BindingTypes>::Axis: Send,
impl<T> UnwindSafe for InputBundle<T> where
<T as BindingTypes>::Action: UnwindSafe,
<T as BindingTypes>::Axis: UnwindSafe,
<T as BindingTypes>::Action: UnwindSafe,
<T as BindingTypes>::Axis: UnwindSafe,
impl<T> RefUnwindSafe for InputBundle<T> where
<T as BindingTypes>::Action: RefUnwindSafe,
<T as BindingTypes>::Axis: RefUnwindSafe,
<T as BindingTypes>::Action: RefUnwindSafe,
<T as BindingTypes>::Axis: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> SetParameter for T
[src]
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
[src]
T: Parameter<Self>,
Sets value
as a parameter of self
.
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
[src]
fn is_in_subset(&self) -> bool
[src]
unsafe fn to_subset_unchecked(&self) -> SS
[src]
fn from_subset(element: &SS) -> SP
[src]
impl<T> Resource for T where
T: Any + Send + Sync,
[src]
T: Any + Send + Sync,
impl<T> Any for T where
T: Any,
[src]
T: Any,
fn get_type_id(&self) -> TypeId
[src]
impl<T> TryDefault for T where
T: Default,
[src]
T: Default,
fn try_default() -> Result<T, String>
[src]
fn unwrap_default() -> Self
[src]
Calls try_default
and panics on an error case.
impl<T> Event for T where
T: Send + Sync + 'static,
[src]
T: Send + Sync + 'static,