pub struct Tilt {
pub x: u16,
pub y: u16,
}Available on
gb_pak_tilt and crate feature pak only.Expand description
One latched pair of axes, as the sensor reports them.
Subtract CENTRE for a signed lean. x grows leftward and y upward, and
one g moves either by about 0x70.
Fields§
§x: u16§y: u16Trait Implementations§
impl Copy for Tilt
impl Eq for Tilt
impl StructuralPartialEq for Tilt
Auto Trait Implementations§
impl BankSafe for Tilt
impl Freeze for Tilt
impl RefUnwindSafe for Tilt
impl Send for Tilt
impl Sync for Tilt
impl Unpin for Tilt
impl UnsafeUnpin for Tilt
impl UnwindSafe for Tilt
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