SDL
SDL copied to clipboard
The start of checking for reverse scroll direction (mouse and touchpad seperately)
I have implemented the ability for us to detect whether a mousewheel event is caused by an actual mouse or mousepad. With this feature we can then further work on supporting "natural scrolling", "reverse scroll direction" or however you want to call it.
Fixes #5066
This is a good start, thanks! I'm going to hold off merging this until 2.24.0 ships.
Can you mark this as a draft pull request so we don’t accidentally merge it before you’re ready?
Can you mark this as a draft pull request so we don’t accidentally merge it before you’re ready?
On the right of the initial message, there is a link to convert to a draft. (below the list of reviewers) Looks like maintainers can do this as well.
This might be a weird question but is there some kernel protection mechanism implemented in the OS, that prevents you from making multiple open syscalls?
Nevermind. I had too many file descriptors open. After I've increased the limit, everything started working fine again.
We finally have it working on XFCE!
Could we re-run the checks, please?
Now it should build on macOS too. Could we re-run again, please?
Could we re-run the tests again, please? Now that the main branch is fine, the build should finally succeed, right? And a question: Why can't I myself restart these tests?
Oh gosh, I don't think we want to add an XML library to SDL for this. If it's going to come to that, and custom code for each window manager, we'd rather go to the xdg committee and ask for some sort of standard where window managers set a property we can query and just leave it unsupported on other window managers.
I'm going to close this PR for now, but we'll leave #5066 open so we can revisit this later.