#!/bin/sh # Pacto Tech (PactoLink on Batocera / RetroPie / Lakka) - switch the controller to: Analog Fast # (joysticks act as a full-speed analog stick) # 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":4,"on":true}' http://127.0.0.1:46810/api/v1/invoke/set_mode | grep -q true