MADxpALEX / android-bluez-ime

Automatically exported from code.google.com/p/android-bluez-ime
0 stars 0 forks source link

Erroneous Keypresses from Wiimote/Nunchuk #249

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What version of BluezIME are you using? 1.16

What Android device do you have? What Android version?

OUYA.

What gamepad are you using?

Third-Party Wiimote and Nunchuk by Rock Candy.

What steps will reproduce the problem?
1. Connect to the Wiimote with Nunchuk via BluezIME
2. Open an app that accepts text input.

What is the expected output? What do you see instead?

Output as if C and Z are constantly being pressed. No analog output.

Please provide any additional information below.

I started modifying the source code and found my Wiimote has a quirk that 
causes it to report Nunchuk data on offset 5 even if the Remote accelerometer 
isn't "activated". I can get some of the Nunchuk data to work by reading the 
following in WiimoteReader.java:

Thumbstick = data[5] and data[6]
Accellerometer = data[7] data[8] data[9]

However, if I try to read the buttons from data[10], it doesn't work and the 
thumbstick stops outputting keypresses as well. I'm guessing I'm causing an 
array overflow.

I know the problem is fixable because a related app on the PC, cwiid, has the 
same problem with my Wiimote quirk, but it is negated if I read accelerometer 
data; after that the Nunchuk works completely.

Original issue reported on code.google.com by ericxd...@gmail.com on 16 Sep 2013 at 5:47

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

GoogleCodeExporter commented 8 years ago
I realized this is probably a defective product and not a quirk; exchanging my 
Rock Candy Wii Remote for the same product to see if a new one works properly.

Original comment by exb...@gmail.com on 28 Sep 2013 at 12:44