Mandos de otras plataformas en una PS4 con jailbreak, por USB o desde el móvil por la red. Controllers from other platforms on a jailbroken PS4, by USB or from a phone over the network.
AnyPad PS4 es un port, exclusivo para PS4, de AnyPad PS5 de elmonomalvad0. AnyPad PS4 is a PS4-only port of AnyPad PS5 by elmonomalvad0.
Proyecto no oficial, sin relación con Sony Interactive Entertainment. PlayStation, PS4, DualShock y DualSense son marcas de Sony Interactive Entertainment. Unofficial project, not affiliated with Sony Interactive Entertainment. PlayStation, PS4, DualShock and DualSense are trademarks of Sony Interactive Entertainment.
AnyPad PS4 es un payload que hace que la consola vea mandos de otras marcas como DualShock 4 virtuales: en los menús, en los juegos y en los emuladores. Hay dos formas de conectarlos:
- Por USB, en los puertos de la consola.
- Por la red local: un móvil o un PC abre una página, su navegador lee el mando conectado a ese dispositivo (por cable o emparejado por Bluetooth con el móvil) y lo envía a la consola. Así se juega sin cable sin usar el Bluetooth de la consola.
- Por el Bluetooth de la consola, un DualSense (o Edge) o un Switch Pro ya enlazado con ella, y solo si lo enciendes en el menú (Bluetooth de la consola). Parchea el driver mientras AnyPad está en marcha y lo deja como estaba al apagarlo. Los mandos se eligen en el propio menú, al lado de la opción (DualSense o Switch Pro), y solo corre uno a la vez.
Probado en una PS4 con firmware 13.52. El Bluetooth de la consola funciona además en 9.00, 11.00 y 12.50 (sus tablas vienen de OneFamily, sin probar aquí); en otro firmware la opción se apaga y el log da los datos que hacen falta para añadirlo.
| Estado | |
|---|---|
| Mandos Xbox 360 (XInput) por USB | ✅ probado (GameSir G8 Plus en modo Xbox 360) |
| Mandos Xbox One (GIP) por USB | |
| Mandos HID por USB con perfil (Switch Pro y compatibles, GameSir…) | ✅ probado |
| Cualquier otro mando HID por USB (perfil genérico, leyendo su descriptor) | |
| GameSir Kaleid Flux por USB | ✅ probado |
| GameSir G8 Plus por USB, en su modo Xbox 360 o Switch | ✅ probado |
| Mando por red desde el navegador de un móvil o PC | ✅ probado con un móvil real (GameSir y DualSense) |
| Mandos de Sony (DualShock 4, DualSense) por USB a través de AnyPad | ❌ la consola se los reserva (y ya funcionan de forma nativa) |
| DualShock 3 (PS3) por USB | |
| Mandos de Sony por el mando por red | ✅ probado (DualSense) |
| DualSense por el Bluetooth de la propia consola (opción del menú; fw 9.00, 11.00, 12.50 y 13.52) | ✅ probado en 13.52 (sticks, botones, panel táctil, barra de luz); el resto, tablas de OneFamily sin probar. No lo uses a la vez que OneFamily |
| Switch Pro por el Bluetooth de la propia consola (misma opción, mismas versiones) | ✅ probado en 13.52 (sticks, cruceta, botones, gatillos). Rumble y barra de luz, sin probar en consola todavía |
La lista por mando está en COMPATIBILITY.md.
- Descarga
AnyPad-PS4-<versión>.elfde Releases, cópialo en/data/payloadsde la consola y lánzalo. Si usas Payload Guest, descarga el.bin: es el mismo archivo, con la extensión que esa app muestra. - Aparece una notificación con dos direcciones, con la IP de tu consola: la del menú (
http://<IP de tu consola>:8095/) y la del mando por red (http://<IP de tu consola>:8096/). AnyPad también se añade a la fila de multimedia, para abrir el menú desde la consola. - Por USB: conecta el mando. En cuanto envía su primer dato, la consola recibe un DualShock 4 virtual.
- Por red: abre la dirección del mando por red en el navegador de un móvil o un PC conectado a la misma red que la consola. Conecta allí el mando (por cable o emparejado por Bluetooth con el móvil) y pulsa un botón. Toca la pantalla una vez: la página la mantiene encendida mientras juegas; baja el brillo para ahorrar batería. Puedes conectar varios mandos al mismo móvil: cada uno llega a la consola como un mando distinto, con su nombre.
- Cuando la consola pregunte quién usa el mando, elige tu usuario. Si el mando no tiene botón PS, usa Pulsar PS en el menú.
- Por el Bluetooth de la consola (DualSense/Edge o Switch Pro ya enlazado con ella): en el menú, enciende Bluetooth de la consola y enciende el mando después (si ya estaba encendido, apágalo y vuelve a encenderlo). Para el Switch Pro, elige Switch Pro en el menú; para volver al DualSense, DualSense. Al apagar AnyPad o esa opción, el driver vuelve a como estaba. El rumble y la barra de luz van desde el juego (sin probar en consola todavía).
Hasta 4 mandos a la vez, contando los USB, los de red y los de Bluetooth.
- Pulsar el panel (muchos juegos lo usan para el mapa o el menú): en los mandos Xbox y GameSir es el botón View/Back; en los de Switch, Capture. En el mando por red, el botón del panel de un mando de PlayStation, o el View de los demás.
- Deslizar el dedo: la página del mando por red tiene una zona táctil que hace de panel del DualShock 4, con uno o dos dedos, y un botón Pulsar panel. Va al primer mando de la lista del móvil.
En http://<IP de tu consola>:8095/: los mandos conectados con su nombre y sus botones, sticks y gatillos en vivo; la dirección del mando por red y cuántos dispositivos lo usan; Pulsar PS por mando; el log; y Apagar AnyPad.
Apaga AnyPad antes de volver a cargar el ELF (botón del menú, o crea el fichero vacío /data/anypad/stop). Al entrar la consola en reposo, AnyPad se para solo: vuelve a cargarlo al despertar.
| Problema | Qué hacer |
|---|---|
| El navegador busca en internet en vez de abrir la página | Escribe la dirección completa, con http:// delante, en la barra de direcciones: http://<IP de la consola>:8096/. La IP es la de la consola (la de la notificación de AnyPad), no la del móvil, y AnyPad tiene que estar en marcha. |
| La página no abre en el móvil | El móvil tiene que estar en la misma red Wi-Fi que la consola: no con datos móviles ni en una red de invitados (suelen aislar los dispositivos entre sí). Comprueba la dirección en la notificación de AnyPad. |
| Antes funcionaba y ahora la página no abre | El router le dio otra IP a la consola. AnyPad lo detecta en unos segundos y muestra una notificación con las direcciones nuevas. Si la página del móvil no llega a la consola en 15 s, muestra un recuadro para escribir la IP nueva y te lleva a ella. Para que no cambie, reserva una IP para la consola en tu router (reserva DHCP o IP fija). |
| La página dice «Esperando mandos» | Pulsa un botón del mando: los navegadores no muestran un mando hasta su primera pulsación. |
| «AnyPad PS4: ya está en marcha» | Ya hay uno cargado. Usa ese, o apágalo desde su menú antes de cargarlo de nuevo. |
| Un mando no llega a la consola | AnyPad maneja hasta 4 a la vez (USB y red juntos), y la consola cuenta también sus propios mandos. Desconecta alguno. |
| Un mando de Sony por USB no hace nada | La consola se reserva los mandos de Sony por USB. Conéctalo al móvil y usa el mando por red. |
| La consola pregunta quién usa el mando y no puedo elegir | Elige con el mando por el que pregunta. Si no tiene botón PS o no responde, usa Pulsar PS en el menú. |
| Fichero | Para qué |
|---|---|
/data/anypad/anypad.log |
El log (y .log.1, el anterior) |
/data/anypad/maps/VVVV_PPPP.map |
Corrige botones o ejes de un mando sin perfil (ver maps/EXAMPLE.map) |
/data/anypad/stop |
Vacío: para AnyPad |
/data/anypad/no_icon, /data/anypad/remove_icon |
No añadir el icono a la fila de multimedia / quitarlo una vez |
El menú y el mando por red solo aceptan conexiones de la red local y no tienen contraseña: cualquiera en tu red puede abrirlos mientras AnyPad está en marcha. No expongas los puertos 8095 y 8096 a Internet.
make test # tests en el ordenador
make ps4 PS4_PAYLOAD_SDK=/ruta/al/sdk # el ELF, en dist/
make send PS4_HOST=<IP de la consola> PS4_PORT=<puerto> # enviarlo al cargador de payloads
Necesitas el ps4-payload-sdk (con clang y lld). Los stubs de enlace de libSceUsbd y libSceMbus, que el SDK no trae, están en tools/sce_stubs/ y el build los compila solo. tools/build-elf-ps4-docker.sh <sdk> <imagen> compila dentro de un contenedor con clang, lld y make. tools/live.sh habla con un AnyPad en marcha (estado, log en vivo, parar); ver AI-WORKFLOW.md.
- AnyPad PS5, de elmonomalvad0: el proyecto del que nace este port (pad virtual, perfiles de mandos, menú). Su historial está en el proyecto original y en el historial de git de este repositorio.
- Control4Free (MoHadiShibli): la idea del mando por red, con el navegador como mando.
- MissionControl (ndeadly): perfiles por fabricante y modelo, y el formato de los reports de muchos mandos.
- SplashDown (seregonwar) y shadPS4: la secuencia del pad virtual y el formato de sus datos.
- NoSleep.js (Rich Tibbett, MIT): los vídeos que mantienen despierta la pantalla del móvil.
- OneFamily (ChiricoG, MIT; sobre DualSense-PS4 de Diramix): el protocolo del driver de Bluetooth de la consola y el informe de salida del DualSense.
GPL-3.0-or-later (ver LICENSE). Si publicas tu propia versión o incluyes AnyPad en otro programa, conserva los avisos, distribuye los cambios con la misma licencia y, por favor, menciona a elmonomalvad0 y enlaza el proyecto original.
AnyPad PS4 is a payload that makes the console see controllers from other brands as virtual DualShock 4s: in the menus, in games and in emulators. There are two ways to connect them:
- By USB, on the console's ports.
- Over the local network: a phone or PC opens a page, its browser reads the controller connected to that device (by cable, or paired to the phone by Bluetooth) and sends it to the console. That gives wireless play without the console's own Bluetooth.
- Over the console's Bluetooth: a DualSense (or Edge) or a Switch Pro already linked to it, and only if you turn it on in the menu (Console Bluetooth). It patches the driver while AnyPad runs and puts it back when turned off. The pads are picked in the menu itself, next to the option (DualSense or Switch Pro), and only one runs at a time.
Tested on a PS4 with firmware 13.52. Console Bluetooth also works on 9.00, 11.00 and 12.50 (their tables come from OneFamily, not tried here); on any other firmware the option stops and the log gives what is needed to add it.
| Status | |
|---|---|
| Xbox 360 controllers (XInput) by USB | ✅ tested (GameSir G8 Plus in Xbox 360 mode) |
| Xbox One controllers (GIP) by USB | |
| HID controllers by USB with a profile (Switch Pro and compatibles, GameSir…) | ✅ tested |
| Any other HID controller by USB (generic profile, from its descriptor) | |
| GameSir Kaleid Flux by USB | ✅ tested |
| GameSir G8 Plus by USB, in its Xbox 360 or Switch mode | ✅ tested |
| Network controller from a phone or PC browser | ✅ tested with a real phone (GameSir and DualSense) |
| Sony controllers (DualShock 4, DualSense) by USB through AnyPad | ❌ the console keeps them for itself (and they already work natively) |
| DualShock 3 (PS3) by USB | |
| Sony controllers through the network controller | ✅ tested (DualSense) |
| DualSense over the console's own Bluetooth (menu option; fw 9.00, 11.00, 12.50 and 13.52) | ✅ tested on 13.52 (sticks, buttons, touchpad, light bar); the rest are OneFamily's tables, not tried here. Do not use it together with OneFamily |
| Switch Pro over the console's own Bluetooth (same option, same versions) | ✅ tested on 13.52 (sticks, d-pad, buttons, triggers). Rumble and light bar, not tried on a console yet |
The list, controller by controller, is in COMPATIBILITY.md.
- Download
AnyPad-PS4-<version>.elffrom Releases, copy it to/data/payloadson the console and run it. If you use Payload Guest, download the.bin: the same file, with the extension that app lists. - A notification shows two addresses, with your console's IP: the menu (
http://<your console's IP>:8095/) and the network controller (http://<your console's IP>:8096/). AnyPad also adds itself to the media row, to open the menu from the console. - By USB: plug the controller in. As soon as it sends its first report, the console gets a virtual DualShock 4.
- Over the network: open the network controller's address in the browser of a phone or PC on the same network as the console. Connect the controller there (by cable, or paired to the phone by Bluetooth) and press a button. Tap the screen once: the page keeps it on while you play; turn the brightness down to save battery. You can connect several controllers to the same phone: each one reaches the console as a separate controller, with its name.
- When the console asks who is using the controller, choose your user. If the controller has no PS button, use Press PS in the menu.
- Over the console's Bluetooth (a DualSense/Edge or Switch Pro already linked to it): in the menu, turn on Console Bluetooth and turn the controller on afterwards (if it was already on, turn it off and on again). For the Switch Pro, pick Switch Pro in the menu; DualSense goes back. When AnyPad or that option is turned off, the driver goes back to how it was. Rumble and light bar come from the game (not tried on a console yet).
Up to 4 controllers at once, counting the USB, network and Bluetooth ones.
- Pressing the touchpad (many games use it for the map or the menu): on Xbox and GameSir controllers it is the View/Back button; on Switch ones, Capture. On the network controller, a PlayStation controller's touchpad button, or the others' View.
- Swiping: the network controller's page has a touch area that acts as the DualShock 4's touchpad, with one or two fingers, and a Pulsar panel (press touchpad) button. It goes to the first controller in the phone's list.
At http://<your console's IP>:8095/: the connected controllers with their name and their buttons, sticks and triggers live; the network controller's address and how many devices use it; Press PS per controller; the log; and Stop AnyPad.
Stop AnyPad before loading the ELF again (the menu's button, or create the empty file /data/anypad/stop). When the console goes to rest mode, AnyPad stops by itself: load it again after waking up.
| Problem | What to do |
|---|---|
| The browser searches the web instead of opening the page | Type the full address, with http:// in front, in the address bar: http://<console IP>:8096/. The IP is the console's (the one in AnyPad's notification), not the phone's, and AnyPad must be running. |
| The page does not open on the phone | The phone must be on the same Wi-Fi network as the console: not on mobile data nor on a guest network (they usually keep devices apart). Check the address in AnyPad's notification. |
| It worked before and now the page does not open | The router gave the console another IP. AnyPad notices within seconds and shows a notification with the new addresses. If the phone's page cannot reach the console for 15 s, it shows a box to type the new IP and takes you there. To keep it from changing, reserve an IP for the console in your router (DHCP reservation or a static IP). |
| The page says «Esperando mandos…» (waiting for controllers) | Press a button on the controller: browsers do not show a controller until it is first pressed. |
| "AnyPad PS4: already running" | One is already loaded. Use it, or stop it from its menu before loading it again. |
| A controller does not reach the console | AnyPad handles up to 4 at once (USB and network together), and the console also counts its own controllers. Disconnect one. |
| A Sony controller by USB does nothing | The console keeps Sony's controllers on USB for itself. Connect it to the phone and use the network controller. |
| The console asks who is using the controller and I cannot choose | Choose with the controller it is asking about. If it has no PS button or does not answer, use Press PS in the menu. |
| File | What for |
|---|---|
/data/anypad/anypad.log |
The log (and .log.1, the previous one) |
/data/anypad/maps/VVVV_PPPP.map |
Fixes buttons or axes of a controller with no profile (see maps/EXAMPLE.map) |
/data/anypad/stop |
Empty: stops AnyPad |
/data/anypad/no_icon, /data/anypad/remove_icon |
Do not add the icon to the media row / remove it once |
The menu and the network controller only accept connections from the local network and have no password: anyone on your network can open them while AnyPad runs. Do not expose ports 8095 and 8096 to the Internet.
make test # tests on the computer
make ps4 PS4_PAYLOAD_SDK=/path/to/sdk # the ELF, in dist/
make send PS4_HOST=<console IP> PS4_PORT=<port> # send it to the payload loader
You need the ps4-payload-sdk (with clang and lld). The link stubs for libSceUsbd and libSceMbus, which the SDK lacks, are in tools/sce_stubs/ and the build makes them by itself. tools/build-elf-ps4-docker.sh <sdk> <image> builds inside a container with clang, lld and make. tools/live.sh talks to a running AnyPad (state, live log, stop); see AI-WORKFLOW.md.
- AnyPad PS5, by elmonomalvad0: the project this port comes from (virtual pad, controller profiles, menu). Its history is in the original project and in this repository's git history.
- Control4Free (MoHadiShibli): the idea of the network controller, with the browser as the pad.
- MissionControl (ndeadly): profiles by vendor and model, and the report layouts of many controllers.
- SplashDown (seregonwar) and shadPS4: the virtual pad sequence and its data layout.
- NoSleep.js (Rich Tibbett, MIT): the clips that keep the phone's screen awake.
- OneFamily (ChiricoG, MIT; on Diramix's DualSense-PS4): the console Bluetooth driver protocol and the DualSense output report.
GPL-3.0-or-later (see LICENSE). If you publish your own version or include AnyPad in another program, keep the notices, distribute your changes under the same license and, please, mention elmonomalvad0 and link the original project.