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

1.4.7.1068: Joystick axis controls only go between 0 and positive maximum #3

Closed
jsiren opened this issue Nov 24, 2015 · 2 comments
Closed

Comments

@jsiren
Copy link

jsiren commented Nov 24, 2015

As per OpenTK documentation, a joystick axis should vary between -1 and +1, 0 being the neutral or center position. Any controls assigned to a joystick axis seem to only have the 0 and +1 positions. The negative side is completely dead, and the positive side goes to +1 as soon as the axis deviates from zero. To verify: add the following line to controls.cfg and try driving any train with a combined power/brake handle (UK examples classes 323, 220):

SINGLE_FULLAXIS, joystick, 0, axis, 1, 1

Manual editing is required because of #4

@leezer3
Copy link
Owner

leezer3 commented Nov 24, 2015

Rats, didn't mean for that to happen :(

Axis control is now working much better, but the changes I've made here won't fix the current problem, which is the fault of the SINGLE_FULLAXIS handling.
Using a joystick axis as an Increase or Decrease command works as designed.

@leezer3
Copy link
Owner

leezer3 commented Nov 24, 2015

OK, should now be fixed in the most recent build- I've reverted to code very close to Michelle's original implementation.

This doesn't fix the joystick detection issue under Linux- Investigating :)

@leezer3 leezer3 closed this as completed Nov 24, 2015
leezer3 pushed a commit that referenced this issue May 7, 2019
Change: Update ja-JP language file
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