[−][src]Struct multiinput::manager::RawInputManager
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]
T: 'static + ?Sized,
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> 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>,