Sorry for the trouble, but I am trying to play the game with a PS4 controller and it isn't working.
I used also InputMapper as well, but it make the character circle around while holding the gun the character.
Any help is appreciated. Thank you
So the PS4 controller's driver is really weird.
The L2 and R2 triggers read in the range of -1 to +1. Where -1 is depressed. And some inputs overlap.
This is completely different from ALL other controllers out there that read 0 to +1 or 0 to -1. Where 0 is depressed, and absolute(1) is pressed.
This is why your character is spinning when you hold aim, it's registering it as a -1 to +1 input on the rstick which rotates your character.
I've since written a completely new input manager that recognizes PS3 and PS4 controllers and accomodates it. It's going to be in the update that is released later this month.
In the mean time I'd suggest mapping 'AIM' to something like R1 instead of R2. If you give me a moment I'll go grab a PS4 controller and try to come up with a mapping that works and post it here... it's my roommates controller though so I have to wait for him to get home.
So here's what I did to get somewhat suitable controls with PS4 controller in the current released version.
When you start the game in the settings window select input settings. For all the inputs double click the entries and set it to what you prefer.
Then for 'Digital Aim' make the secondary the R1 button (or L1 if you prefer).
Then for 'Analogue Aim' you need to set it to some analogue input that is 0 when not pressed. On the PS4 controller I went with the D-Pad Y-axis (up on the d-pad). Since I use the L-stick for movement, the d-pad doesn't do anything.
Are 'Analogue Aim' and 'Analogue Right Joystick X' set to the same values?
If not, there might be an issue with your R-stick. PS4 controllers often will read values from the R-stick oddly I've found. They don't zero out correctly. Try disconnecting the gamepad and reconnecting with the sticks in the center (as best you can). Also make sure you don't have any secondary remapping software running. And then in game once it's started waggle the stick slightly which should zero it out.
If that doesn't work, there's not a whole lot more I can do for ya as I don't know your controller setup.
As stated before we are going to be releasing an update soon that has upgraded controllers support. Although if your problem is related to a remapping tool or anything, there isn't a lot I can do about that even in the newer version as it's related to the controller and not the game.
Either way, expect a beta version of this update in the next week or so. The artist is currently doing a polish pass on the lighting.