68 bool operator== (const
MouseInputSource& other) const noexcept {
return pimpl == other.pimpl; }
69 bool operator!= (
const MouseInputSource& other)
const noexcept {
return pimpl != other.pimpl; }
73 MouseInputSource::InputSourceType getType() const noexcept;
76 bool isMouse() const noexcept;
79 bool isTouch() const noexcept;
82 bool isPen() const noexcept;
87 bool canHover() const noexcept;
90 bool hasMouseWheel() const noexcept;
101 int getIndex() const noexcept;
104 bool isDragging() const noexcept;
107 Point<
float> getScreenPosition() const noexcept;
110 Point<
float> getRawScreenPosition() const noexcept;
115 ModifierKeys getCurrentModifiers() const noexcept;
122 float getCurrentPressure() const noexcept;
128 float getCurrentOrientation() const noexcept;
133 float getCurrentRotation() const noexcept;
139 float getCurrentTilt (
bool tiltX) const noexcept;
142 bool isPressureValid() const noexcept;
145 bool isOrientationValid() const noexcept;
148 bool isRotationValid() const noexcept;
151 bool isTiltValid (
bool tiltX) const noexcept;
154 Component* getComponentUnderMouse() const;
159 void triggerFakeMove() const;
166 int getNumberOfMultipleClicks() const noexcept;
169 Time getLastMouseDownTime() const noexcept;
172 Point<
float> getLastMouseDownPosition() const noexcept;
176 bool isLongPressOrDrag() const noexcept;
179 bool hasMovedSignificantlySincePressed() const noexcept;
182 bool hasMouseCursor() const noexcept;
185 void showMouseCursor (const MouseCursor& cursor);
194 void forceMouseCursorUpdate();
197 bool canDoUnboundedMovement() const noexcept;
216 void enableUnboundedMouseMovement (
bool isEnabled,
bool keepCursorVisibleUntilOffscreen = false) const;
219 bool isUnboundedMouseMovementEnabled() const;
222 void setScreenPosition (Point<
float> newPosition);
227 static constexpr
float defaultPressure = 0.0f;
230 static constexpr
float defaultOrientation = 0.0f;
233 static constexpr
float defaultRotation = 0.0f;
236 static constexpr
float defaultTiltX = 0.0f;
237 static constexpr
float defaultTiltY = 0.0f;
244 [[deprecated ("Use defaultPressure instead.")]]
245 static const
float invalidPressure;
252 [[deprecated ("Use defaultOrientation instead.")]]
253 static const
float invalidOrientation;
260 [[deprecated ("Use defaultRotation instead.")]]
261 static const
float invalidRotation;
268 [[deprecated ("Use defaultTiltX instead.")]]
269 static const
float invalidTiltX;
270 [[deprecated ("Use defaultTiltY instead.")]]
271 static const
float invalidTiltY;
276 static const
Point<
float> offscreenMousePos;
280 [[deprecated (
"This method has been replaced with the isLongPressOrDrag and hasMovedSignificantlySincePressed "
281 "methods. If you want the same behaviour you should use isLongPressOrDrag which accounts for the "
282 "amount of time that the input source has been held down for, but if you only want to know whether "
283 "it has been moved use hasMovedSignificantlySincePressed instead.")]]
284 bool hasMouseMovedSignificantlySincePressed() const noexcept;