Where I can find serial commands for ps4 controller?

Talk about anything concerning the source code.
Post Reply
SelfMake
Posts: 2
Joined: Mon Jul 24, 2017 12:30 pm

Where I can find serial commands for ps4 controller?

Post by SelfMake »

Hello -
I'm looking fo the commandlist to interact with the gimx over serial/com-port.

Can't find it... so what I mean is how to translate the controller map (https://gimx.fr/wiki/index.php?title=Controller_Maps) to serial command?


Thanks
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Where I can find serial commands for ps4 controller?

Post by Matlo »

Hello,

It's much easier to leave this task to a GIMX instance, and to send inputs to this instance using the network API.
https://gimx.fr/wiki/index.php?title=Network_API

If you still want to learn how GIMX talks with the serial port, you'll have to read core/adapter.c (current master branch) or core/controller.c (current development branch).
GIMX creator
SelfMake
Posts: 2
Joined: Mon Jul 24, 2017 12:30 pm

Re: Where I can find serial commands for ps4 controller?

Post by SelfMake »

Thanks -
I've figured out that stuff but i'm missing how to handle that what you called "spoof"-header to keep on the connection.
Do you have a little explanation about this?
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Where I can find serial commands for ps4 controller?

Post by Matlo »

It's complicated. You have to talk with a DS4 to pass the authentication.
GIMX creator
Post Reply