Newbie Question about macro using PlayStation DualShock Controller

I’m trying to create a macro for use on PS Remote play that should be fairly simple but I haven’t gotten far. Essentially on a single button press I’d like to start a macro with one button press, two left stick movements, another button press, a pause, then to have it repeat indefinitely.

I’ve got my DualShock 5 connected through USB and I’ve got a New Macro set to start on a button press. My problem is that I can’t seem to find any ‘action’ that will press buttons on my controller, and when I try to ‘record’ it only records input from the keyboard, not the controller.

Could someone give me an idea of how this is done? Or heck even write a quick macro I can adjust the timing on?

There's usually a 10% chance I'm wrong, but it's probably 20% here.

Your observation suggests that the controller device is not sending USB key codes (instead, it probably uses HID codes, which I think is a lower level interface which KM does not work on.)

There likely is software that can convert the HID code to USB key codes (so that KM can detect the buttons.) I'm not sure if it also allows simulation of those HID codes (so that KM can emulate them.) I'm not very familiar with these software items so I won't mention their names, but you can google them like I did.

I’ll be honest, I did just google HID code to USB key codes and it might as well have been in Sanskrit. I wouldn’t know how to use that kind of software even if i could find it without some kind of explanation. Maybe newbie was too generous.

Why though would KM recognize the ‘USB Device Key’ when it’s pressed for triggering, but not when recording if it’s not sending USB key codes?

That's a very good point. I'm not sure. I'm just a person who tries hard, but sometime fails to get the right answer. I will think some more, but I'm not sure if I will find the answer.

The DualSense controller, which is from Sony, has software (also from Sony) that lets you configure it, but it looks like that software is best run on Windows rather than on Mac. However I see that there is an app on the Mac App Store that also claims to be a powerful configuration utility for the controller (called DualSenseM). The reviews aren't great, but at least the Privacy section claims that it collects no data from the user. I'm looking for options in that software that would help you, but I don't see anything.

(Well, I somehow lost my original reply, but here is a slightly better one anyway..!)

“Should be fairly simple” is always good for a laugh. :grinning_face_with_smiling_eyes:

My initial understanding was that your DualShock 5 controller was connected to your Mac via USB, and that you then wanted to be able to use Keyboard Maestro to send codes from tthe Mac to the console by way of the console’s “Remote Play” wireless (WiFi?) functionality.

But you did say that you were looking to “press buttons” on the controller. That suggests to me that you hope to (1) get your KM macro (or, more likely, macros) to be triggered by the DualShock 5 and then (2) send control messages back to the DualShock 5. I am not familiar with this (I am sure) technological marvel, but however powerful it may be, are you sure it has designed not just to send controller messages but also to be able to receive them? Can DualShock 5s “talk” to each other in such a way? I am doubtful but perhaps you know better (you will need to!).

Maybe there is a forum member who is expert in such gaming setups and who can clarify the issues. Otherwise, @DrownInMyReign, I think to get any kind of truly useful replies here (for what I really do not think will be “fairly simple” project) you will need to be crystal clear (to yourself and in follow-up posts here) about what you know to be possible with the gaming devices and what you want to be able to do.

KM can detect USB device keys, but it can't simulate them being pressed (which is what I think you are trying to do).

You might be able to find a third-party app/utility that can, but that's well outside my wheelhouse.

1 Like

I guess the DualShock 5 needs to receive messages from the console to know when to vibrate and maybe do other tricks... and maybe there are optional controllers that could be plugged in and read by the DualShock 5... so I guess it is possible that the device could read and respond to the same sort of codes that it itself sends... but we need to know, and not guess, about these and all other relevant details!