Пример #1
0
  bool HasPointer() const {
#ifdef USE_LIBINPUT
    return libinput_handler.HasPointer();
#else
    return merge_mouse.HasPointer();
#endif
  }
Пример #2
0
 void SetScreenSize(unsigned width, unsigned height) {
 #ifdef USE_LIBINPUT
   libinput_handler.SetScreenSize(width, height);
 #else
   merge_mouse.SetScreenSize(width, height);
 #endif
 }
Пример #3
0
  PixelPoint GetMousePosition() const {
#ifdef USE_LIBINPUT
    return PixelPoint(libinput_handler.GetX(), libinput_handler.GetY());
#else
    return merge_mouse.GetPosition();
#endif
  }
Пример #4
0
 void SetScreenSize(unsigned width, unsigned height) {
   merge_mouse.SetScreenSize(width, height);
 }
Пример #5
0
 RasterPoint GetMousePosition() const {
   return { int(merge_mouse.GetX()), int(merge_mouse.GetY()) };
 }
Пример #6
0
 bool HasPointer() const {
   return merge_mouse.HasPointer();
 }
Пример #7
0
 void SetMouseRotation(bool swap, bool invert_x, bool invert_y) {
   merge_mouse.SetSwap(swap);
   merge_mouse.SetInvert(invert_x, invert_y);
 }
Пример #8
0
 void SetDisplayOrientation(DisplayOrientation orientation) {
   merge_mouse.SetDisplayOrientation(orientation);
 }