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

rewrite joystick input #656

Merged
merged 18 commits into from Mar 21, 2020
Merged

rewrite joystick input #656

merged 18 commits into from Mar 21, 2020

Conversation

amir-arad
Copy link
Contributor

@amir-arad amir-arad commented Jul 1, 2019

  • options.ini configures joystick axis actions, similar to hotkeys.
  • options.ini configures joystick buttons, using existing hotkeys properties (joystick buttons can act as any hotkey)
  • joystick axes can control power and coolant, missile aim, and scan sliders.

this PR includes #655

fixes #413

 - joystick directly change ship turn speed
 - turnSpeed obverrides targetRotation (~ stick overrides
 flight plan)
@daid daid merged commit 98d4ac7 into daid:master Mar 21, 2020
@daid
Copy link
Owner

daid commented Mar 21, 2020

Just noticed something, you where missing "return" statements in the onJoystickAxis functions, which is an warning in C/C++, but IMHO, should be an error. As this will invoke undefined behavior. Chances are it worked fine in testing, but it wasn't proper code. Missed it in my review.

olivier-vm added a commit to olivier-vm/EmptyEpsilon-Clones that referenced this pull request Jul 25, 2021
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.

REQUEST Configurable Keyboard/joystick inputs
2 participants