DS4 (Playstation 4) controller configuration script with use of D-Pad

I prefer to play games with my PS4 controller and I needed to do some trickery to get the button layout similar to those typically found in Playstation games. For example, the X button is typically the action button. However, by default, RPG Maker VX Ace has it set to □. O is set to menu by default and I want to keep it there.

Currently, I have my config like this:
1692547286882.png


- Button 1: X on PS
- Button 2: O on PS
- Button 3: □ on PS
- Button 4: ▲ on PS
- Button 5: L1 on PS
- Button 6: R1 on PS
- Button 7: Share/Select on PS
- Button 8: Options/Start on PS

However, I would prefer Button 5 and Button 6 to be L2 and R2 respectively and those are Button 11 for L2 and Button 12 for R2. Meaning I want L in the drop down menu to be Button 11 and R in the drop down menu to be Button 12.

Also, the game uses the analog stick by default and there is no way to change it within the configuration itself. Also, anything past button 10 does not exist in RPG Maker VX Ace.

I just cannot use an analog stick for a 2D turn-based RPG. It is worse that the game even uses the analog stick by default for menu navigation and command selection.

As a result, I am using Joy2Key to force the D-Pad to use the keyboard inputs for up, down, left, right to workaround this problem.

- Up is labeled as POV↑ in J2K
- Down is labeled POV↓
- Left: POV←
- Right: POV→

whereas the analog stick is: Stick1↑, Stick1↓ and so on.


I need a script that can assigned the buttons that I listed natively and allow use of Button 11 and Button 12 for L & R as well as the ability to use the D-Pad for movement rather than the analog stick so I do not have to resort to Joy2Key for RPG Maker VX Ace.

Can I please get someone to make something like this? Thank You!
This may take a fair bit of work on your part.
I have seen many threads over time of people having issue with game pads scripts.
The only gamepad script I know of that works well is Lone Wolf - Gamepad Extender.
To make it use all the keys on your PS4 controller you may need to use a keyboard mapper script. There are several of those.

In short your remapping keys and making sure those keys are the same as the ones you press on the keypad.

A few years ago I tested using scripts to incorporate gamepads, but didn't have much luck as I have too much in my project for it to be practical to use.

Which means that you may have scripts that won't like your gamepad config or keyboard remapper.

I can't provide any help with this. It will take a lot of effort on your part. Because you will likely have to change several scripts to be happy with the keyboard mapper script (whichever one you get)
Thanks anyway. I guess I will just keep using Joy2Key for D-pad.

Original thread: https://forums.rpgmakerweb.com/threads/ds4-playstation-4-controller-configuration-script-with-use-of-d-pad.160460/