bool HasPointer() const { #ifdef USE_LIBINPUT return libinput_handler.HasPointer(); #else return merge_mouse.HasPointer(); #endif }
void SetScreenSize(unsigned width, unsigned height) { #ifdef USE_LIBINPUT libinput_handler.SetScreenSize(width, height); #else merge_mouse.SetScreenSize(width, height); #endif }
PixelPoint GetMousePosition() const { #ifdef USE_LIBINPUT return PixelPoint(libinput_handler.GetX(), libinput_handler.GetY()); #else return merge_mouse.GetPosition(); #endif }
void SetScreenSize(unsigned width, unsigned height) { merge_mouse.SetScreenSize(width, height); }
RasterPoint GetMousePosition() const { return { int(merge_mouse.GetX()), int(merge_mouse.GetY()) }; }
bool HasPointer() const { return merge_mouse.HasPointer(); }
void SetMouseRotation(bool swap, bool invert_x, bool invert_y) { merge_mouse.SetSwap(swap); merge_mouse.SetInvert(invert_x, invert_y); }
void SetDisplayOrientation(DisplayOrientation orientation) { merge_mouse.SetDisplayOrientation(orientation); }