BEGGING for Input Manager help!!!

For the life of me I cannot get the game to recognize my logitech dual action right stick to look around… I have looked around the forums but haven’t successfully been able to get it to work based on everyone’s suggestions. Essentially the left stick moves the FPS controller around fine. But the right stick does nothing :frowning: If someone could share their setup or even send over an InputManager asset I would greatly appreciate it.

Sincerely,

Gary Haus

That’s weird that you’re having problems as my Logitech Rumble Pad 2 works fine and looks to be very similar to yours. I’m sure you’ve tried all the obvious things (ie. different axis settings). Have you tried a joystick testing application? If so, what axis does that app say your right stick is?

You have helped me with a similar issue several years ago… Haven’t tried a joystick test app(what might one be?)

Most of my dev work is on mobile now… I guess I cannot figure out which Inputs to duplicate/rename and modify. I think it is the 4th axis on the stick that is the look… I am just not sure… not enough sleep. I hope I can figure this out… The client is antsy!!!

Thank you,

Gary

If you’re on a Mac, this is the one I use: AlphaOmega Software
Without using something like this you end up guessing what the input might be. Use something like this to find out what the axis number is and then make sure you have one in your input manager. Use one of the existing axes as a guide to set it up. Hope it helps!

Thanks I will check it!

Well I have totally messed it up… Good thing I backed up my InputManager… Time to start over… I feel like a TOTAL idiot with the InputManager… I just don’t understand the naming stuff… LOL… Back to the drawing board and maybe some sleep soon!

Gary

If you mess up the input manager, you can always reset it by clicking on the “gear” icon and selecting “reset” (this works on Macs but under Windows is broken). If you get a chance, post what axes the test app showed for your joysticks. If I get a chance I’ll see if I can create a new inputmanager.asset for you.

Here it is first two our left analog stick… second two are the right analog stick

I haven’t tested this but it should work. Attached is a screenshot of what the joystick tester shows for my gamepad and how I set up the input manager.

476651--16734--$Screen shot 2011-01-18 at 3.44.17 PM.png

476651–16733–$InputManager_asset.zip (924 Bytes)

Thanks BigKahuna. Well I tried both of the gamepads I have here( logitech dual action) and it is a no go… If I had hair I would pull that crap right out! I think I will have to order one of those pads… If I can find one… Thanks again…

Gary

Sorry to ask, but you’re sure that you’re calling the new axes correctly in your script? I’ve named them “Vertical2” and “Horizontal2” so you should be able to copy/paste your code for the other joystick and just add “2” to it. And it still doesn’t work? Can’t say that I’ve tested the dual action, but based on what that test app shows it should work. On that note, I have been told that other gamepads didn’t work, but those were usually no-name devices.

Wait. uhhh I need to edit a script… lol… figures… I guess I assumed the FPS controller would work without doing anything else besides the InputManager…

Sounds like sleep deprivation to me! :wink:

ok… ok… yes most likely :wink: What FPS script should I edit/modify - using standard FPS script with Unity3.1

I’m in the middle of something right now so I can’t take a look at that script, but what I would do is this: make a copy of the script and open it up in the editor. Search for all the cases that “Input” is used and see how they’ve set up the other axes. Then write similar Input commands for the functionality you want. To be honest I’ve never used the standard FPS script (I’ve always coded my own) so I’m sort of guessing how they’ve set things up.

BigK thanks. I appreciate the help tremendously! Good luck with your project and as always the help was greatly appreciated!

Gary

No problem. If you still run into problems later post again here and I’ll try to put something together for you.

Well if you can look into it I would greatly appreciate it! Have to wrestle some other scripts… arrg I am no coder…

Sincerely,

Gary

Ok, I haven’t messed with this before and I’m not sure what you want it to do when you’re done, but I’m guessing you want the right joystick to do what is currently done by the mouse (ie. move the camera left / right and up / down), right? If so, then the script you want to look at is “mouselook.cs” in the FPS controller. It’s written in C# (which I suck at) but my guess is that you would start off changing the instances of “Mouse X” and “Mouse Y” here:

float rotationX = transform.localEulerAngles.y + Input.GetAxis("Mouse X") * sensitivityX;
rotationY += Input.GetAxis("Mouse Y") * sensitivityY;

To “Horizontal2” and “Vertical2”.

Give that a try and see how it works for you.

Yahoo! That’s what I did before and it no work! I tried again and it works fabulous! I would like to see if there is a way to have both going. i.e. mouse if mouse is grabbed or gamepad if that is grabbed… Thanks BigK!

Gary