use wlc::{Callback, Point, View, input};
#[derive(Default)]
pub struct PointerHandler {}
impl Callback for PointerHandler {
fn pointer_motion(&mut self, _view: Option<&View>, _time: u32, origin: Point) -> bool {
input::pointer::set_position(origin);
false
}
}
impl PointerHandler {
pub fn new() -> PointerHandler {
PointerHandler {}
}
}