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