zsy.ds4

[zsy.ds4] is is a simple max patch to handle Dualshock 4 inputs (over bluetooth). It works with the major analog and digital inputs come from DS4 but without some advance features (trackpad and Sixaxis).

Axel's icon

Hi Larme,
I'm really interested in this patch you made.
Unfortunately it doesn't work. I've checked, in other app as Joystick Mapper, i received the DS4 commands properly. But when it comes to Max, nothing is happening. The clip detect the "wireless controler" but none of the buttons i press.
I'm using Max 7.0.6 on OSX 10.9.5

Do you have any idea where the problem can come from ?

Axel

larme's icon

Hi Axel,

I tried on my computer (Max 7.0.6 and OSX 10.10) and it works fine. Make sure the ds4 connect to the mac as HID controller. Maybe Joystick Mapper installed customized driver for ds4?

Axel's icon

Ok, when i connect it with usb wire (bluetooth off) it works. But pressing L2 correspond to L2 on digital and R2p on analogs. Pressing R2 correspond to R2 in digital and nothing on analog. L2p has a value goes from 0 and sixty repeatedly.
Maybe because of the wire but good enough for working with DS4.

About connecting as HID controller, is there is any special way to do it ? The bluetooth settings displays DS4 as "Wireless Controller" isn't it like this for you ?

larme's icon

Maybe ds4 from different regions have different setups?

Max Patch
Copy patch and select New From Clipboard in Max.

When connect with bluetooth, use the patch below to test if the controller output any values.

Axel's icon

Well, it outputs a static "3 0"
No button or joysticks make it changes.

larme's icon

That's weird.

If [hi] doesn't output the button and joysticks values, my patch won't work.

Axel's icon

i suppose … I will figure out what's going on with this [hi]

Axel's icon

Very simple, updating OSX have helped it. Now i got it wireless.
Thank you for this patch Larme ! Now i've got my DIY gamer controler, i litteraly PLAY my VJset

Edward Hannon's icon

Hi Larme,
I'm having issues connecting my DS4 to Max with this package,
I have my DS4 connected but i'm not getting any inputs in Max
Im currently running MacOS mojave 10.14.5 and Max 7.0.0

I had it working on another system, running MacOS sierra I think and i'm unsure what Max version it's running.

I'm also wondering, when i have it running, the inputs such as the ps button, when i press it, is there any way to have it toggle on and off rather than Toggle on and off depending if it is held down or not?

Edward

Published

Creative Commons License

Author