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

Linux input fixes #12

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

Teklad
Copy link

@Teklad Teklad commented Mar 10, 2019

Before I made these changes I would have to close and re-open the configuration window each time after setting a single joystick key due to it copying my previous input every time I selected the "change" button.

This cleans up the code a little bit and makes it work somewhat better. The only lingering issue that I've come across is it has a little trouble with trigger axises (this was also present before the change).

Justin Kinnaird added 3 commits March 10, 2019 17:55
* Use SDL_PollEvent instead of manually checking each event
* Remove some newly-unused variables
@loathingKernel
Copy link

loathingKernel commented Mar 15, 2019

At first glance the fix seems OK, will test it later today.
On the other hand, the spacing fixes seem odd, the code mostly uses spaces for indentation and I don't see any reason for them to be replaced with tabs.

@Teklad
Copy link
Author

Teklad commented Mar 15, 2019 via email

@mgorny
Copy link

mgorny commented Jan 16, 2020

While trying to figure out haptic problems I'm having, I've noticed that this patch breaks building against SDL1:

cfg-gtk.c:(.text+0xccf): undefined reference to `SDL_FlushEvent'

@Teklad
Copy link
Author

Teklad commented Jan 17, 2020

I don't have a joystick with haptic feedback at the moment, but I'll take a peek at the old API and see if I can't get it building for you again at least.

@mgorny
Copy link

mgorny commented Jan 17, 2020

Actually, it turned out SDL1 is no better than SDL2 (for haptic).

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

Successfully merging this pull request may close these issues.

3 participants