#!/bin/sh # Pacto Tech (PactoLink on Batocera / RetroPie / Lakka) - switch the controller to: Keyboard Off # (leave keyboard mode: back to the arcade controls as gamepads (takes ~12 s so Windows can forget the old controller)) # Silent. Exit code 0 = switched. Tested so far in virtual machines only. # Docs: https://leecyrille.github.io/PactoTech_Public_Releases/control-api.html curl -s -m 5 -X POST -H "Content-Type: application/json" \ -d '{"id":6,"on":false}' http://127.0.0.1:46810/api/v1/invoke/set_mode | grep -q true