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

KSP 1.4 Linux compatibility #64

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

Conversation

soulsource
Copy link

@soulsource soulsource commented Mar 25, 2018

Recent Unity versions use SDL for input handling on Linux. That means, in order not to break KSP's input system, we mustn't consume any input inside the mod. As far as I understand the code I changed, its main purpose is to repopulate the event queue of SDL (as the event that gets polled is not used anywhere). The same effect can be achieved by pumping the event queue without reading from it.
That's what this pull request does.

This plugin is now interesting again, as KSP 1.4.1 has broken Joystick/Gamepad handling on Linux. It's currently impossible to assign input axis, but Advanced Fly-By-Wire just works.
Also, Toolbar Continued has been updated to 1.4.1, so Advanced Fly-By-Wire is just this patch and a recompile away from working on the new KSP.

I think Unity on Windows does not use SDL, but I don't have a Windows box to confirm.
@soulsource soulsource changed the title Feature/ksp1.4 KSP 1.4 Linux compatibility Mar 25, 2018
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.

None yet

1 participant