pub struct InputDeviceState {
pub digital_inputs: RwLock<BitArray>,
pub analog_inputs: RwLock<Box<[f32]>>,
/* private fields */
}Fields§
§digital_inputs: RwLock<BitArray>§analog_inputs: RwLock<Box<[f32]>>Implementations§
Source§impl InputDeviceState
impl InputDeviceState
pub fn get_analog(&self, axis: usize) -> f32
pub fn get_digital(&self, button: usize) -> bool
pub fn set_analog(&self, axis: usize, value: f32)
pub fn set_digital(&self, button: usize, value: bool)
Auto Trait Implementations§
impl !Freeze for InputDeviceState
impl RefUnwindSafe for InputDeviceState
impl Send for InputDeviceState
impl Sync for InputDeviceState
impl Unpin for InputDeviceState
impl UnwindSafe for InputDeviceState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more