Example: LX = Left Joystick X Axis and it equals 0 at start. If I move the joystick left LX = 1. If I let go of the joystick after it equals 1 then the joystick moves back to the middle and my hands are not touching it at all and LX = 1.54342E.
Any idea how to fix this?
Comments
Basically what you want to do is ignore values below a certain value - like, below 0.15 and greater than -0.15, and then scale the rest of the range by that amount if you care about sensitivity. There's more detail on implementing dead zones in the Analogue Stick State of the World thread:
http://forums.ouya.tv/discussion/1275/analog-stick-state-of-the-world
OUYA Inc | Android Developer
Skype: tgraupmann_prey
http://github.com/ouya/docs
http://github.com/ouya/ouya-sdk-examples
Check out the latest docs for your game engine: [setup] [adobe air] [android] [clickteam fusion] [construct 2] [corona] [libGDX] [game maker] [html5] [marmalade] [monogame] [unity] [unreal]
Use caution when setting [persistent wireless mode].
1.54342E. <-- see that letter? That means it's in Engineering notation. It's displayed like this when it's either very large or very small.
I'm actually willing to bet you didn't copy the whole thing. ToString on a float would never return this, because it's in the right range to display as a regular decimal. I'm willing to bet it actually looks something like this:
1.54342E-5 (the five was pulled straight from thin air, but you get the idea of what it looks like)
The number I just wrote actually comes out to:
0.000154342