Gamepad functioning by reading commands from /tmp/in