Struct ndless::input::touchpad::TouchpadReport
source · pub struct TouchpadReport {
pub contact: bool,
pub proximity: u8,
pub x: u16,
pub y: u16,
pub x_vel: u8,
pub y_vel: u8,
pub pressed: bool,
pub arrow: Option<Key>,
}
Fields§
§contact: bool
§proximity: u8
§x: u16
§y: u16
§x_vel: u8
§y_vel: u8
§pressed: bool
§arrow: Option<Key>
Trait Implementations§
source§impl Clone for TouchpadReport
impl Clone for TouchpadReport
source§fn clone(&self) -> TouchpadReport
fn clone(&self) -> TouchpadReport
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TouchpadReport
impl Debug for TouchpadReport
source§impl From<touchpad_report_t> for TouchpadReport
impl From<touchpad_report_t> for TouchpadReport
source§fn from(report: touchpad_report) -> Self
fn from(report: touchpad_report) -> Self
Converts to this type from the input type.
source§impl Hash for TouchpadReport
impl Hash for TouchpadReport
source§impl PartialEq for TouchpadReport
impl PartialEq for TouchpadReport
source§fn eq(&self, other: &TouchpadReport) -> bool
fn eq(&self, other: &TouchpadReport) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TouchpadReport
impl Eq for TouchpadReport
impl StructuralPartialEq for TouchpadReport
Auto Trait Implementations§
impl RefUnwindSafe for TouchpadReport
impl Send for TouchpadReport
impl Sync for TouchpadReport
impl Unpin for TouchpadReport
impl UnwindSafe for TouchpadReport
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