[][src]Struct multiinput::manager::RawInputManager

pub struct RawInputManager { /* fields omitted */ }

Manages Raw Input Processing

Methods

impl RawInputManager[src]

pub fn new() -> Result<RawInputManager, &'static str>[src]

pub fn register_devices(&mut self, device_type: DeviceType)[src]

Allows Raw Input devices of type device_type to be received from the Input Manager

pub fn filter_devices(&mut self, device_names: Vec<String>)[src]

Filters events returned to the list of names provided by the device_names list Warning: you still need to register the corresponding device types beforehand for this to work!

pub fn unfilter_devices(&mut self)[src]

Undoes the application of filter_devices()

pub fn get_event(&mut self) -> Option<RawEvent>[src]

Get Event from the Input Manager

pub fn get_events(&mut self) -> TryIter<RawEvent>[src]

Get All Events from the Input Manager

pub fn get_joystick_state(&mut self, id: usize) -> Option<JoystickState>[src]

Get Joystick State from the Input Manager

pub fn print_device_list(&self)[src]

Print List of Potential Input Devices

pub fn get_device_stats(&self) -> DeviceStats[src]

Get Device Stats (number of connected devices)

pub fn get_device_list(&self) -> DevicesDisplayInfo[src]

Get Device list

Trait Implementations

impl Drop for RawInputManager[src]

Auto Trait Implementations

impl !RefUnwindSafe for RawInputManager

impl Send for RawInputManager

impl !Sync for RawInputManager

impl Unpin for RawInputManager

impl !UnwindSafe for RawInputManager

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.