VOOZH about

URL: https://www.phoronix.com/news/SDL-More-Mouse-Buttons-Wayland

⇱ SDL Fixes Support For More Than Five Mouse Buttons For Gaming On Wayland - Phoronix


👁 Phoronix

SDL Fixes Support For More Than Five Mouse Buttons For Gaming On Wayland

Written by Michael Larabel in Linux Gaming on 27 December 2025 at 07:57 PM EST. 6 Comments
The Simple DirectMedia Library that is widely-used by many cross-platform games and part of the Steam Runtime now has better support for handling more mouse button events under Wayland.

Last week was a bug report over supporting more mouse buttons than five. While some mice end up binding their extra mouse buttons to keyboard keys, some mice such as when configured via Libratbag+Piper can map them to higher key press input event codes. Theoretically, allowing up to 48 key press input events in total.

👁 Gaming mice


That issue of handling more mouse buttons is now fixed today via this commit to the SDL library. Valve developer Sam Lantinga added the support for extended buttons on Wayland to properly handle this functionality with different gaming mice on Linux.

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.