GamepadPlus
This is a mod that rewrites the low-level controller handling in PAYDAY 2, to improve the experience when using a gamepad.
The main features are:
- Gyroscopic aiming, on PlayStation and Switch Pro controllers (and any other controllers supported by SDL3)
- Native button prompts for XBox, PlayStation and Switch Pro controllers
- The accept/cancel buttons can be swapped to the Nintendo layout (down=back and right=accept)
- DualSense (PS5 controller) adaptive trigger support
Installation
Note that if you are using Steam, YOU MUST DISABLE STEAM INPUT FOR THE GAME: Right-click PAYDAY 2 in your Steam library, select Properties, select Controller, and select "Disable Steam Input".
If you don't do this, then you may find that the inputs are all broken.
Gyroscopic Aiming
This mod adds gyro aiming, which is where you can move the camera by rotating your controller. This works
on the PS4, PS5 and Switch Pro controllers, but notably not the XBox controllers as they don't contain a gyroscope.
When you start the game, place your controller on a solid surface for five seconds. This allows the game
to calibrate it's gyroscope. If you do not do this, you may notice the camera slowly drifting sideways
when gyro support is enabled. The gyroscope is only calibrated if it is on a stable surface - holding the
controller in your hands or on your lap likely won't enable calibration mode due to the tiny rotations.
There are three suppored aiming modes:
World-space gyro
Vertical aiming is only possible via gyro, the thumbstick's Y-axis is disabled. If you spin the
controller around and then move it back to it's original position, the camera will point in the same direction
as it did before.
You can use the D-Pad up button to recentre your view. This rotates the camera vertically to pointing
straight ahead.
This is very similar to the aiming mode used by the Splatoon series.
Player-space gyro (only when aiming)
The right stick controls the camera as usual, but when you are aiming down sights you can also use the gyroscope
to fine-tune your aim.
This is the default option, as it's the easiest for new players to use.
Player-space gyro (always enabld)
This uses the same logic as player-space gyro, but is always enabled.
You can hold the D-Pad up button to temporarily disable the gyroscope, to rotate the controller back to a comfortable
position without moving the camera (this also works with the only-when-aiming mode).
Gyro disabled mode
There's also the "Disabled" mode, which does what it says on the tin.
Flick-stick aiming
When using gyro aiming, you can optionally enable flick-stick control too. This dedicates the right stick to rotating the
camera in the horizontal direction, since you can do all your vertical aiming with the gyroscope.
Push the stick in a direction to instantly snap to it, and rotate the stick to fine-tune the direction.
This is disabled by default - it's only useful if you're using the gyroscope as your primary method of aiming.
Source Code
For the source code and information on how to compile the DLL, see: https://gitlab.com/znixian/payday2-gamepadplus