Hey guys, I have been working on a game for a lil while now and keep running into this huge issue. I can’t use the right thumb stick on my joystick to control the camera in my game.
The game is a isometric third person shooter, and I need to be able to rotate the camera. I have searched the forums and played around with stuff and I get nothing. I even posted about this a year ago and haven’t gotten any real feedback.
Also if you guys post code can you let me know if it is Java or C?
What is the problem ? You can"t retrieve the right axis values ?
I have no clue on how to configure the right thumbstick to enable me to control the camera.
I am using a xbox 360 joystick and a dual stick pc joystick.
If you ever figure it out, make a post. I was never able to get Unity to recognize more than two axes off of any external input device. Nor was I able to figure out how to get true analog state inputs at all - its either on or off and all you get is the same spring you can put on an axis-mapped key.
Is it even possible?
Well, in order to confirm the previous link, I made blind tests (checking for all axes from a Joy Num, the 1 for example), and move every stick and check any change. Are you talking about xbox 360 pad, or something else ?
I have both a 360 pad and a Logitech joystick of the type you’d use with a flight simulator. I was able to detect deflection on a few axes but it was always reporting either 0 (stick centered) or 1 (any position other than centered) as the Raw Input. That’s not really analog input.
I figured it just wasn’t supported for portability reasons or whatever and stopped trying. But if there’s some way to get the real raw input, that would be great.
?
Input.GetAxis and Input.GetAxisRaw works fine for me. Are we talking about the same thing ?
Maybe we arn’t. And maybe it was working fine but I was doing something dumb in my input setup.
Its not something I’m all that worried about. Need to support KB/Mouse only inputs anyhow so I’m focusing on that.
Thanks.
p.s. - I just went back and checked that code. I was indeed doing something dumb in my Input configuration. You are absolutely right: analog inputs work just fine.