Files
MoHadiShibli--Control4Free/include/c4f_web.h
T
MoHadiShibli 6d931a05ce Payload: system-wide virtual controllers through Sony's VDA API
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).
2026-10-04 19:53:43 +03:00

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