SDL Merges Wayland Pointer Warp Support To Help Native Wayland Gaming
([Wayland] 3 Hours Ago
SDL + Wayland + Pointer Warp)
- Reference: 0001552948
- News link: https://www.phoronix.com/news/SDL-Lands-Wayland-Pointer-Warp
- Source link:
Introduced with this week's [1]Wayland Protocols 1.45 release is adding the Pointer Warp protocol to staging. The SDL hardware/software abstraction library commonly used by cross-platform games was quick to merge support for using the native Pointer Warp protocol on Wayland.
Wayland's Pointer Warp protocol allows applications to request the pointer be moved to a position relative to a Wayland surface. This works nicely in combination with Wayland's pointer constraint and pointer lock protocols for better handling first person shooters and other games natively under Wayland.
First person shooter games, strategy games, and other clip-to-drag-map type games/software commonly rely on pointer warp behavior. Almost immediately after the Wayland Protocols 1.45 release with this staging protocol in place, SDL merged support for this Wayland Pointer Warp support.
"wayland: implement the pointer warp protocol
The pointer warp protocol allows us to warp the pointer to a different position on the surface, without any hacks like locking and unlocking the pointer"
More details in [2]this pull request for those interested. A nice step forward for native Wayland gaming.
[3]
[1] https://www.phoronix.com/news/Wayland-Protocols-1.45
[2] https://github.com/libsdl-org/SDL/pull/10922
[3] https://www.phoronix.com/image-viewer.php?id=2025&image=sdl_pointer_warp_lrg
Wayland's Pointer Warp protocol allows applications to request the pointer be moved to a position relative to a Wayland surface. This works nicely in combination with Wayland's pointer constraint and pointer lock protocols for better handling first person shooters and other games natively under Wayland.
First person shooter games, strategy games, and other clip-to-drag-map type games/software commonly rely on pointer warp behavior. Almost immediately after the Wayland Protocols 1.45 release with this staging protocol in place, SDL merged support for this Wayland Pointer Warp support.
"wayland: implement the pointer warp protocol
The pointer warp protocol allows us to warp the pointer to a different position on the surface, without any hacks like locking and unlocking the pointer"
More details in [2]this pull request for those interested. A nice step forward for native Wayland gaming.
[3]
[1] https://www.phoronix.com/news/Wayland-Protocols-1.45
[2] https://github.com/libsdl-org/SDL/pull/10922
[3] https://www.phoronix.com/image-viewer.php?id=2025&image=sdl_pointer_warp_lrg
phoronix