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

wpilibj: joystick buttons >= 8 not working #340

Closed
rrossbach opened this issue Nov 11, 2016 · 2 comments
Closed

wpilibj: joystick buttons >= 8 not working #340

rrossbach opened this issue Nov 11, 2016 · 2 comments
Assignees
Milestone

Comments

@rrossbach
Copy link
Contributor

Using wpilibj beta 2, Joystick.getRawButton() always returns false for any buttons beyond button 8. Looking more closely, when pressing button 8 getRawButton() returns true not just for button 8 but for all remaining buttons present on the stick.

This appears to be caused by the JNI layer treating the buttons field as a byte rather than an int.

@rrossbach
Copy link
Contributor Author

I just submitted a pull request that I think should fix this issue

@PeterJohnson
Copy link
Member

Fixed in #341.

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

4 participants