pub struct Pointer {
pub x: f32,
pub y: f32,
pub frame_x: f32,
pub frame_y: f32,
pub dx: f32,
pub dy: f32,
pub wheel_x: f32,
pub wheel_y: f32,
pub buttons: u32,
pub pressed: u32,
pub released: u32,
pub flags: u32,
}Fields§
§x: f32position in drawable pixels (gfx width/height space)
y: f32§frame_x: f32position in the last presented frame’s pixels (2D games)
frame_y: f32§dx: f32relative motion since the previous frame (also while locked)
dy: f32§wheel_x: f32about 1 per wheel notch; y > 0 = down
wheel_y: f32§pressed: u32went down / up since the previous frame (a quick click shows in both)
released: u32§flags: u32Implementations§
Trait Implementations§
impl Copy for Pointer
impl StructuralPartialEq for Pointer
Auto Trait Implementations§
impl Freeze for Pointer
impl RefUnwindSafe for Pointer
impl Send for Pointer
impl Sync for Pointer
impl Unpin for Pointer
impl UnsafeUnpin for Pointer
impl UnwindSafe for Pointer
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