News: 0001566845

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

SDL Library Lands Precision Scrolling For X.Org Usage

([Linux Gaming] 5 Hours Ago Precision/Pixel Scrolling)


For Linux gamers relying on the X.Org Server, the SDL3 library that is widely-used by cross-platform games has landed support for precision/pixel scrolling.

Merged yesterday to the SDL3 library for the X.Org code path when using X Input 2 is support for precision scrolling for more precise scrolling than what's been available to this point.

The work stems from [1]this three year old merge request for the Simple DirectMedia Layer to use pixel-level scrolling with X Input 2:

"This patch will automatically detect precision scroll devices using xinput2, allowing for SDL applications to detect scrolling changes smaller than one line, allowing for smooth scrolling on devices with touchpads, trackpoints, and trackballs."

[2]X Input 2 has been around for more than a decade already and so for those still running an X.Org Server in a modern Linux environment, the support should be available. Some 200 lines of new SDL3 code for enhancing the scrolling experience.

Separately, SDL yesterday also released [3]SDL 3.2.20 with some fixes. There is a fix for doubled mouse wheel events on X11, support for the Google Play 16KB page size requirement, fixing audio playback on the PSP, and various other fixes.



[1] https://github.com/libsdl-org/SDL/pull/5382

[2] https://www.phoronix.com/search/X+Input+2

[3] https://github.com/libsdl-org/SDL/releases/tag/release-3.2.20



nuetzel

Copying machine, n.:
A device that shreds paper, flashes mysteriously coded messages,
and makes duplicates for everyone in the office who isn't
interested in reading them.