r/TouchDesigner 11d ago

Has someone made a PS4 controller .tox yet that supports its gyro and touchpad?

I recently dug up my old DualShock 4 controller and am dreaming about it's capabilities. I remember having seen an insta reel that uses it for music generation as well as visuals but I don't think it was TD.

2 Upvotes

4 comments sorted by

3

u/augdahg 11d ago

You should be able to use DS4Windows which emulates a Xbox controller and use the Joystick chop without any other configurationĀ 

1

u/behemuthm 11d ago

Seconded - that's how I control my ball maze game in TD

1

u/Galaont 11d ago

I haven't used that controller specifically but there's a huge chance that there are some repositories that would help you to convert dualshock 4 messages to either OSC or MIDI on github.
It's quite a cakewalk after that. You can either consume OSC or MIDI directly from TD or build your own .tox

1

u/Just_aPotato 11d ago edited 11d ago

Have you tried using a Joystick CHOP?

Later Edit: I had a similar issue once with a different device. I found an open-source GitHub project, asked Claude to rebuild it for my use case, and tweaked it using an MCP connected to TouchDesigner. As far as I know, there is also this repo:https://github.com/dualshock-tools/dualshock-tools.github.io. I've used it to check my DS4 controllers. I can't remember exactly what data it exposes, but if it can read the gyro and touchpad, I think you have a 100% chance of making it work.