[−][src]Struct oxygengine_input::resource::InputController
Implementations
impl InputController
[src]
pub fn register<D>(&mut self, device: D) where
D: InputDevice + 'static,
[src]
D: InputDevice + 'static,
pub fn unregister(&mut self, name: &str) -> Option<Box<dyn InputDevice>>
[src]
pub fn device(&self, id: &str) -> Option<&dyn InputDevice>
[src]
pub fn as_device<T>(&self, id: &str) -> Option<&T> where
T: InputDevice,
[src]
T: InputDevice,
pub fn mapping_axes(&self) -> impl Iterator<Item = (&str, (&str, &str))>
[src]
pub fn mapping_triggers(&self) -> impl Iterator<Item = (&str, (&str, &str))>
[src]
pub fn map_axis(&mut self, name_from: &str, device: &str, name_to: &str)
[src]
pub fn unmap_axis(&mut self, name: &str)
[src]
pub fn map_trigger(&mut self, name_from: &str, device: &str, name_to: &str)
[src]
pub fn unmap_trigger(&mut self, name: &str)
[src]
pub fn axes(&self) -> impl Iterator<Item = (&str, Scalar)>
[src]
pub fn triggers(&self) -> impl Iterator<Item = (&str, TriggerState)>
[src]
pub fn axis(&self, name: &str) -> Option<Scalar>
[src]
pub fn axis_or_default(&self, name: &str) -> Scalar
[src]
pub fn set_axis(&mut self, name: &str, value: Scalar)
[src]
pub fn trigger(&self, name: &str) -> Option<TriggerState>
[src]
pub fn trigger_or_default(&self, name: &str) -> TriggerState
[src]
pub fn set_trigger(&mut self, name: &str, value: TriggerState)
[src]
pub fn process(&mut self)
[src]
Trait Implementations
impl Default for InputController
[src]
fn default() -> InputController
[src]
Auto Trait Implementations
impl !RefUnwindSafe for InputController
impl Send for InputController
impl Sync for InputController
impl Unpin for InputController
impl !UnwindSafe for InputController
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
fn get_type_id(&self) -> TypeId
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> Event for T where
T: Send + Sync + 'static,
T: Send + Sync + 'static,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Resource for T where
T: Any,
T: Any,
impl<T> TryDefault for T where
T: Default,
T: Default,
fn try_default() -> Result<T, String>
fn unwrap_default() -> Self
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,