I'm making a game where you'll be able to play on a PC or Mac with either an xbox or PS3 controller. I've found different drivers that work with each variation but the problem I have is that the triggers are mapped differently for each driver.
Mac with PS3 Controller: The PS3 controller works natively with Mac 10.6 and up so if at all possible I'd like to refrain from having to find a new driver. The problem is the triggers are mapped to "joystick button 8" and "joystick button9" when it should be mapped to an axis. Because of this the value of each trigger can only be either 0 or 1 so it's not pressure sensitive.
Mac with xbox Controller I'm using the Tattiebogle driver for the xbox controller on a mac. The triggers are mapped to the 5th and 6th axes. No complaints here.
PC with xbox or PS3 controller I'm using the MotionJoy driver for the xbox and PS3 controller on a PC. It's a bitch to get it started compared to the Mac but that's not the real issue. The triggers are both mapped to the 3rd axis. L2 is 0 to 1 and R2 is 0 to -1. This is kind of cool but there's no way of telling if the user is holding down both triggers. I'll probably need to find a new driver for PC but from what I've read MotionJoy is the best. And it sucks IMO.
Unity should really have their own drivers download automatically when you download the Unity player.
go to input manager, To see the Input Manager choose: Edit->Project Settings->Input.
and give to input same name i.e. "Fire1" "Fire2" "Jump" and other are presetting. but you can easily add other increasing size and use it for input
this should work
answered Aug 04 '12 at 02:57 AM