[−][src]Struct joydev_rs::Device
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]
&mut self,
number: u8,
axis: AbsoluteAxis
) -> Result<()>
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]
&mut self,
number: u8,
button: KeyOrButton
) -> Result<()>
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]
fn into_raw_fd(self) -> RawFd[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]
U: From<T>,
impl<T> From<T> for T[src]
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,