[][src]Struct joydev_rs::Device

pub struct Device { /* fields omitted */ }

Methods

impl Device[src]

pub const fn axis_count(&self) -> u8[src]

pub fn axis_mapping(&self) -> &[AbsoluteAxis; 64][src]

pub fn axis_mapping_at(&self, number: u8) -> AbsoluteAxis[src]

pub const fn button_count(&self) -> u8[src]

pub fn button_mapping(&self) -> &[KeyOrButton; 512][src]

pub fn button_mapping_at(&self, number: u8) -> KeyOrButton[src]

pub fn driver_version(&self) -> u32[src]

pub unsafe fn from_raw_fd(fd: RawFd) -> Result<Self>[src]

pub fn get_correction_values(&self) -> Result<Vec<Correction>>[src]

pub fn get_event(&self) -> Result<DeviceEvent>[src]

pub fn new(file: File) -> Result<Self>[src]

pub fn open<P: AsRef<Path>>(path: P) -> Result<Self>[src]

pub fn refresh_axis_mapping(&mut self) -> Result<()>[src]

pub fn refresh_button_mapping(&mut self) -> Result<()>[src]

pub fn refresh_mapping(&mut self) -> Result<()>[src]

pub fn set_axis_mapping(&mut self, mapping: &[AbsoluteAxis; 64]) -> Result<()>[src]

pub fn set_axis_mapping_at(
    &mut self,
    number: u8,
    axis: AbsoluteAxis
) -> Result<()>
[src]

pub fn set_button_mapping(&mut self, mapping: &[KeyOrButton; 512]) -> Result<()>[src]

pub fn set_button_mapping_at(
    &mut self,
    number: u8,
    button: KeyOrButton
) -> Result<()>
[src]

pub fn set_correction_values(&self, mapping: &[Correction; 64]) -> Result<()>[src]

Trait Implementations

impl Debug for Device[src]

impl AsRawFd for Device[src]

impl IntoRawFd for Device[src]

Auto Trait Implementations

impl Send for Device

impl Sync for Device

impl Unpin for Device

impl UnwindSafe for Device

impl RefUnwindSafe for Device

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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