pub struct Rumble {
pub small: bool,
pub large: u8,
}Expand description
What the two motors of a DualShock are asked to do on a poll.
The small motor is on or off, the large motor has a level. The request
rides in two bytes of every poll once the motors are mapped
(enable_rumble_on); a pad that is not a DualShock in analog mode
ignores it, and the driver sends it zeros.
Fields§
§small: boolThe small (high-frequency) motor: on or off.
large: u8The large (low-frequency) motor’s level; below about 0x40 it does not spin.
Implementations§
Trait Implementations§
impl Copy for Rumble
impl Eq for Rumble
impl StructuralPartialEq for Rumble
Auto Trait Implementations§
impl Freeze for Rumble
impl RefUnwindSafe for Rumble
impl Send for Rumble
impl Sync for Rumble
impl Unpin for Rumble
impl UnsafeUnpin for Rumble
impl UnwindSafe for Rumble
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)