Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raw mouse input. #89

Open
Sur3 opened this issue Jun 12, 2020 · 1 comment
Open

Raw mouse input. #89

Sur3 opened this issue Jun 12, 2020 · 1 comment

Comments

@Sur3
Copy link

Sur3 commented Jun 12, 2020

At the moment oshu seems to use the desktop mouse input with it's desktop mouse acceleration, but playing shooter games it is common to use raw input instead with an in-game (config file or command line) multiplicator setting for the mouse speed.

@fmang
Copy link
Owner

fmang commented Jun 12, 2020

Thank you for your suggestion.

Implementing raw input sounds like lot of work, but it’s probably the optimal option indeed. I don’t know if we can get the raw input through SDL2; if not, cross-platform support is going to be complicated. We could alternatively add a multiplier over the desktop mouse but I don’t know how well that would work.

SDL used to have the SDL_VIDEO_X11_MOUSEACCEL environment variable to set a custom mouse acceleration, but it doesn’t seem to work anymore. https://wiki.libsdl.org/FAQLinux#How_do_I_enable_X11_mouse_acceleration.3F

As a workaround, you could to make a shell wrapper like:

# set acceleration through xinput or xset
oshu "$@"
# reset acceleration

Though oshu is still maintained, it is not under active development. I’ll leave your issue open as a reminder, but it won’t be implemented too soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants