1 solution for ps4 controller

I really like the control on ps4 so I tried to macro with JoyToKey, but it doesn't let you overlap, for example, down arrow with X, so triplets are hard unless you let go of the buttons quick. My solution was to use AutoHotkey to make a close simulation, this is the result:

sorry for the bad performance, the camera was between my knees and I was holding the controller awkwardly.

The script lets you overlap the dpad with the face buttons. I also made R2 and L2 store hold notes and press all four buttons at the same time like hisokeee's controller layout:
https://youtu.be/Kyxwkn3W0uc?t=5m59s
R1 and L1 are the default slide arrows though, because that's my layout
You can use both analog sticks to hit left/left and right/right double slide arrows

There are some problems I'm still trying to fix, like if X is being held for the hold bonus, if you press down to mash for fun, it lets go of the hold and you lose the bonus. Also, you need to let go of every button (other than slide arrows) before pressing R2 or L2 to hit all 4 notes at the same time.

This is my first time sharing my code so I know it's hard to read, also I'm a novice at Autohotkey, apologies. If you need explanation on something, I'll try my best.
https://pastebin.com/L4jfGjSU

EDIT:I forgot, you have to disable your controller's face buttons and dpad or it will not work. I just set triangle, square, X, and circle to R3, and moved the up, down, left, and right arrows to the left analog stick
作成日時:2017-05-08 15:22:27 更新日時:2017-05-08 21:15:06

Re: 1 solution for ps4 controller

Thanks for sharing! It's very helpful! I'll try later.
作成日時:2017-08-18 03:10:24 更新日時:2017-08-18 03:10:24

Re: 1 solution for ps4 controller

So... how do I set this up?
作成日時:2017-09-08 05:22:59 更新日時:2017-09-08 05:23:11

Re: 1 solution for ps4 controller

I'm using Windows 10 and it recognizes the ps4 controller by default as long as it's wired, not 100% sure this will work if you're using joytokey or something

go to Set Up Key/Button > Assign Key/Button in PPD's home and make it like this(both keyboard and controller)
http://imgur.com/FCxfyp3
Square, X, O, and Triangle are all R3 on the ps4 controller so they don't get in the way
Left, down, right, and up are on the left analog stick, which means you can only navigate the menus using left analog.
R and L are R1 and L1
Start is click on touchpad(since it's easier to press than options) and Home is the Share button

There's two ways you can get the code
The longer/safer way:
-Install Autohotkey
-open notepad and paste the code from https://pastebin.com/L4jfGjSU and name it "anything.ahk"
-when saving, click the dropdown "Save as type" and make it "All Files"
-open the file
you can edit the script if you know Autohotkey

or just get the compiled script here
http://www.mediafire.com/file/zq2x6obs23ygclb/pdxxxgamepad.exe
your antivirus might scan or block it because it makes inputs from your controller hit keys on your keyboard. I know this is kinda roundabout, but that was the only way I could get the face buttons and the dpad to work together without overlapping

When you open the file, it will be the H icon on the bottom right corner of your taskbar. Right click and hit Exit when you're done with it(or just close it from Task Manager if you forget where it is)

To see if it's working without opening PPD, hit any of the face/dpad buttons on notepad to see if it types a combination h, j, k, or u. Right analog should type y or e.

Let me know if you get this to work, because there's like 10 ways it could fail. My pc isn't the same as yours and maybe I forgot something.

Also, this won't work perfectly on classic PPD scores with the up/down/left/right arrow notes since you have to hit those with left analog.
作成日時:2017-09-09 08:01:42 更新日時:2017-09-09 08:35:38

Re: 1 solution for ps4 controller

Sorry, still not working for me. when I run the script, the keys aren't registered to the buttons.
作成日時:2017-10-05 15:53:17 更新日時:2017-10-05 15:53:17

Re: 1 solution for ps4 controller

Hm, can you run this script and see if pressing triangle sends "u"?

joy4::
send u
return

edit:wait, did you just download it from mediafire or did you do the 1st method? and you're using ps4 controller?
作成日時:2017-10-05 23:19:24 更新日時:2017-10-06 02:08:17

Re: 1 solution for ps4 controller

Didn't work

I tried both methods, mediafire and the 1st one. I am using a DS4 controller connected via USB.
作成日時:2017-10-06 03:51:23 更新日時:2017-10-06 03:51:23

Re: 1 solution for ps4 controller

Could you go to control panel > Hardware and Sound > Devices and Printers?

There should be a wireless controller icon like this

https://imgur.com/OxQjwFo

I don't know if it's because I have Steam installed or if it's because my DS4 came from a ps4 pro, but my controller was Plug and Play, meaning it worked for games as soon as I connected it by USB.
作成日時:2017-10-06 04:28:11 更新日時:2017-10-06 04:28:11

Re: 1 solution for ps4 controller

Ok. got it working. I just needed to set the preferred device to my DS4. Thanks
作成日時:2017-10-06 04:41:41 更新日時:2017-10-06 04:41:52

Re: 1 solution for ps4 controller

Nice! So glad it worked for at least one other person.
作成日時:2017-10-06 04:46:31 更新日時:2017-10-06 04:46:31

Re: 1 solution for ps4 controller

Thank you so much it worked! but one request, I want the L1 and R1 button to be triple notes (L1=Square,X,Triangle / R1=Square,X,O) how can I assign that?
作成日時:2017-10-18 21:03:31 更新日時:2017-10-18 21:07:03

Re: 1 solution for ps4 controller

Hi M, I can confirm this works great for me. Thanks for sharing!
作成日時:2018-12-26 20:19:45 更新日時:2018-12-26 20:19:45

Re: 1 solution for ps4 controller

Wow, thanks for sharing this! It worked for me.
作成日時:2019-11-27 07:56:52 更新日時:2019-11-27 07:56:52

Re: 1 solution for ps4 controller

Amazing script, but I have a problem. If I use the joysticks a lot in a short amount of time, it completely disables all buttons for around 2-3 seconds. Does anyone know why this is? I'd love a fix.
作成日時:2020-08-25 04:20:48 更新日時:2020-08-25 04:20:48

削除済み

削除済み
作成日時:2021-01-21 12:14:15 更新日時:2021-06-16 00:57:52

Re: 1 solution for ps4 controller

Suuuuper helpful - thanks!
Also, I ran into Corndog's issue and his solution worked for me too.
作成日時:2022-01-13 10:54:41 更新日時:2022-01-13 10:54:41

Re: 1 solution for ps4 controller


[1億あったらなにする?]
Mikuel ≧w≦
It works omaga ;-;, lots of thnxs.
作成日時:2022-12-18 23:37:14 更新日時:2022-12-18 23:37:14

削除済み


[1億あったらなにする?]
Mikuel ≧w≦
削除済み
作成日時:2022-12-18 23:37:15 更新日時:2023-03-08 00:34:29