mirror of
https://github.com/MoHadiShibli/Control4Free.git
synced 2026-10-06 10:00:28 +02:00
A GoldHEN ELF payload that creates virtual DualShock 4 controllers with scePadVirtualDevice*, the path Remote Play uses, so they work on the home screen, at sign-in and in games. A phone or PC drives them from a page the payload serves on port 4264. - Stage 0 (default) is the browser controller: four slots, explicit creation, native PS4 user selection, input over a WebSocket. - Stages 1-8 are the diagnostics that established the VDA call order. - Loopback-only /api/status and /api/stop for the launcher app. - The klog connection is reopened when a controller is created, so a start through GoldHEN AutoRun still works if it beats the klog server. The VDA code is ported from seregonwar/SplashDown (GPL-3.0).
8 lines
203 B
C
8 lines
203 B
C
#ifndef C4F_WEB_H
|
|
#define C4F_WEB_H
|
|
#define C4F_WEB_PORT 4264
|
|
#define C4F_MAX_PADS 4
|
|
/* Takes ownership of klogFd (may be -1): reconnects it as needed and closes it. */
|
|
int c4fWebRun(int klogFd);
|
|
#endif
|