use super::*;
impl PointerEvent {
#[must_use]
pub fn mouse(x: f32, y: f32) -> Self {
Self::new(
0,
PointerDevice::Mouse,
Point::new(x, y),
PointerButton::Primary,
1.0,
Modifiers::default(),
)
}
#[must_use]
pub fn touch(finger_id: u64, x: f32, y: f32) -> Self {
Self::new(
finger_id,
PointerDevice::Touch,
Point::new(x, y),
PointerButton::Primary,
1.0,
Modifiers::default(),
)
}
}