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

Bluetooth Gamepad is not working on android-native and windows #147

Open
RafaelOliveira opened this issue Aug 29, 2015 · 7 comments
Open

Comments

@RafaelOliveira
Copy link
Contributor

I tested a bluetooth gamepad with html5, android-native and windows, and it's only working on html5. I found a issue with html5, the directional pad is showing strange values (analogs are ok). First, the d-pad is showing the same axis for horizontal and vertical (9). And second, the values are these for horizontal (similar to vertical):
left: 0.7142857313156128
middle: 1.2857143878936768
right: -0.4285714030265808

should be negative on left, near zero on middle, and positive on right.

@RobDangerous
Copy link
Member

Is you gamepad working correctly at http://www.html5rocks.com/en/tutorials/doodles/gamepad/gamepad-tester/tester.html ?

@RafaelOliveira
Copy link
Contributor Author

The values are the same on the d-pad, and the d-pad is acting as a extra axis. From the article they should act as buttons. Maybe a problem with the gamepad or Google Chrome isn't detecting correctly.

the api is implemented on android-native and windows?

@RafaelOliveira
Copy link
Contributor Author

just for the record:
Windows - yes, but only XInput, no DirectInput yet. Android not yet.

@RobDangerous
Copy link
Member

Implemented some Android gamepad code, can you test that?

@RafaelOliveira
Copy link
Contributor Author

My computer is on repair, I will try when I have time.

@RafaelOliveira
Copy link
Contributor Author

I updated the code to the latest Kha, and now I receiving this message in the logcat (in android-native) when using the axis:
mouse locked
Probably related to the latest changes in mouse locking.

About the buttons, 3 buttons are being identified as button 0, and the left bottom shoulder and right bottom sholder aren't being identified.

@jamiltron
Copy link

I have the same issue with mouse locking on OSX 10.11.2 with last night's version of Kha.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants