Pointer Lock Feature Proposed For Wayland

Written by Michael Larabel in Wayland on 26 February 2013 at 03:14 AM EST. 12 Comments
WAYLAND
Kristian Høgsberg has proposed patches to Wayland and the Weston compositor for implementing pointer locks. Pointer locks allow for applications to lock the pointer so they receive relative inputs, which can improve the handling of some games running on Wayland.

Pointer locks let an application lock the pointer position and receive relative motion events. As it concerns Phoronix readers, it's mostly important for gamers in correctly interpreting the mouse position when hitting the edge of the screen, namely first-person shooters. The Wayland pointer lock interface is modelled after the HTML5 pointer lock extension.

From the specific patch, "The extension allows a wayland client to lock the pointer while a surface is active. While the pointer is locked, the client receives relative motion events and the pointer position isn't updated."

Kristian proposed the core Wayland patches for the pointer lock extension plus implemented the support within Weston in this patch series. Kristian confirms that this feature should be useful for the Doom 3 Wayland port, the Wayland SDL2 back-end, and other cases.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week