Disable Gamepad input for Plex Media Player
PLEX_DIR="${HOME}/Library/Application Support/Plex Media Player"
cat > "${PLEX_DIR}/inputmaps/dualshock4-xbox-emulate.json" <<EOF
{
"name": "Playstation Dual Shock 4 Windows Mode",
"idmatcher": "Microsoft.*joystick driver",
"mapping": {
}
}
EOF
PLEX_DIR="${HOME}/Library/Application Support/Plex Media Player"
cat > "${PLEX_DIR}/inputmaps/dualshock4.json" <<EOF
{
"name": "Playstation Dual Shock 4",
"idmatcher": "Wireless Controller",
"mapping": {
}
}
EOF
PLEX_DIR="${HOME}/Library/Application Support/Plex Media Player"
cat > "${PLEX_DIR}/inputmaps/xbox-controller-mac.json" <<EOF
{
"name": "Xbox Controller",
"idmatcher": "XBOX360.*|.*360.*Controller",
"mapping": {
}
}
EOF
PLEX_DIR="${HOME}/Library/Application Support/Plex Media Player"
cat > "${PLEX_DIR}/inputmaps/xbox-controller-windows.json" <<EOF
{
"name": "Xbox Controller",
"idmatcher": "XInput.*|Microsoft.*joystick driver",
"mapping": {
}
}
EOF