Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.x
-
None
-
all
Description
Hello,
it seems that there is no easy way in Qt to receive pointer events in relative mode, a
feature which is supported by all desktop OS:
- Windows: https://docs.microsoft.com/en-us/windows/uwp/gaming/relative-mouse-movement
- macOS: kCGMouseEventDeltaY
- X11: with XF86DGADirectMouse
- Wayland: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/blob/master/unstable/relative-pointer/relative-pointer-unstable-v1.xml
It would be very useful if Qt had an API to temporarily switch from / to relative mouse movement mode, as well as for locking the pointer to a position (à la https://gitlab.freedesktop.org/wayland/wayland-protocols/-/blob/master/unstable/pointer-constraints/pointer-constraints-unstable-v1.xml) but right now unless mistaken it does not seem like this is the case ?
Attachments
Issue Links
- is required for
-
QTBUG-74971 mouse events contain incorrect position when using QCursor::setPos
- Reported
-
QTBUG-92264 WasdController should provide a way to keep rotating the camera regardless of hitting screen edges
- Closed