sparkslabs / unojoy

Automatically exported from code.google.com/p/unojoy
0 stars 2 forks source link

Any analouge input controls all of the axis #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Windows can use the joy stick and all inputs. However it dont matter which 
input (A2.,A3...) i use all of the axis will move.
I have tried grounding the unused axis, but the all axis read zero.
All button are working fine.

I am using unojoywin 24 may 2012

And windows 7 32bit 

Realy sorry if i have missed something (hoping i have really).

Thank

Original issue reported on code.google.com by samgosli...@googlemail.com on 4 Oct 2012 at 10:35

GoogleCodeExporter commented 8 years ago
Same here!

Original comment by ronsse.m...@gmail.com on 3 Mar 2013 at 2:16

GoogleCodeExporter commented 8 years ago
i have the same issue, any one solved??? anyone has a new sketck maybe??

Original comment by ferslash...@gmail.com on 29 May 2013 at 5:37

GoogleCodeExporter commented 8 years ago
Hey, sorry I took forever to get back on this - I finally did some poking 
around, and the issue is that if you've got analog pins that are not connected 
to anything, since the analog input pins are all connected to the same Analog 
to Digital Converter unit, they'll hold the charge of the last analog pin that 
was read. So, the best way to deal with this is to connect up all the analog 
pins you plan on using, then in the code, only set the axes you actually want 
to use, and either set the unused axes to 128 (centered), or use the 
getBlankDataForController() function at the start of your loop, like in the 
sample, and then don't read in the unconnected analog pins.

Original comment by alan.chatham@gmail.com on 27 Jul 2013 at 8:12