#
#   Add compatibility entries for different joysticks
#   to map button and axis arrangments when possible.
#   This is keyed off of the reported joystick name and
#   reported button or axis logical ID.  The value half is
#   the new name as it will be reported through the Joystick
#   interface.
#
#   Keys with spaces in them should have those spaces escaped.
#   Values do not need their spaces escaped.  For example:
#
#   Some\ Joystick.0=3
#


# Final Fantasy XIV mapping
FF-GP1.0=3
FF-GP1.1=2
FF-GP1.2=1
FF-GP1.3=0

# Xbox 360 Controller (Wireless)
Controller\ (Xbox\ 360\ Wireless\ Receiver\ for\ Windows).0=2
Controller\ (Xbox\ 360\ Wireless\ Receiver\ for\ Windows).1=1
Controller\ (Xbox\ 360\ Wireless\ Receiver\ for\ Windows).2=3
Controller\ (Xbox\ 360\ Wireless\ Receiver\ for\ Windows).3=0

Controller\ (Xbox\ 360\ Wireless\ Receiver\ for\ Windows).6=8
Controller\ (Xbox\ 360\ Wireless\ Receiver\ for\ Windows).7=9

Controller\ (Xbox\ 360\ Wireless\ Receiver\ for\ Windows).8=10
Controller\ (Xbox\ 360\ Wireless\ Receiver\ for\ Windows).9=11

Controller\ (Xbox\ 360\ Wireless\ Receiver\ for\ Windows).rx=z
Controller\ (Xbox\ 360\ Wireless\ Receiver\ for\ Windows).ry=rz

# requires custom code to support trigger buttons but this
# keeps it from confusing the .rx mapping.
Controller\ (Xbox\ 360\ Wireless\ Receiver\ for\ Windows).z=trigger

# Xbox 360 Controller (copied from wireless version)
Controller\ (XBOX\ 360\ For\ Windows).0=2
Controller\ (XBOX\ 360\ For\ Windows).1=1
Controller\ (XBOX\ 360\ For\ Windows).2=3
Controller\ (XBOX\ 360\ For\ Windows).3=0

Controller\ (XBOX\ 360\ For\ Windows).6=8
Controller\ (XBOX\ 360\ For\ Windows).7=9

Controller\ (XBOX\ 360\ For\ Windows).8=10
Controller\ (XBOX\ 360\ For\ Windows).9=11

Controller\ (XBOX\ 360\ For\ Windows).rx=z
Controller\ (XBOX\ 360\ For\ Windows).ry=rz

# requires custom code to support trigger buttons but this
# keeps it from confusing the .rx mapping.
Controller\ (XBOX\ 360\ For\ Windows).z=trigger

# XBOX 360 Controller connected to Android using
# the USB dongle
Xbox\ 360\ Wireless\ Receiver.AXIS_RX=z
Xbox\ 360\ Wireless\ Receiver.AXIS_RY=rz
Xbox\ 360\ Wireless\ Receiver.z=AXIS_RX
Xbox\ 360\ Wireless\ Receiver.rz=AXIS_RY

# Microsoft PC-joystick driver
Microsoft\ PC-joystick\ driver.12=POV +Y
Microsoft\ PC-joystick\ driver.13=POV +X
Microsoft\ PC-joystick\ driver.14=POV -Y
Microsoft\ PC-joystick\ driver.15=POV -X

# Logitech F310 gamepad with dip switch DirectInput
Logitech\ Dual\ Action.1=2
Logitech\ Dual\ Action.2=1
Logitech\ Dual\ Action.3=0
Logitech\ Dual\ Action.0=3

# Logitech F310 gamepad with dip switch XInput
Gamepad\ F310\ (Controller).0=2
Gamepad\ F310\ (Controller).1=1
Gamepad\ F310\ (Controller).2=3
Gamepad\ F310\ (Controller).3=0

Gamepad\ F310\ (Controller).6=8
Gamepad\ F310\ (Controller).7=9

Gamepad\ F310\ (Controller).8=10
Gamepad\ F310\ (Controller).9=11

Gamepad\ F310\ (Controller).rx=z
Gamepad\ F310\ (Controller).ry=rz

# requires custom code to support trigger buttons but this
# keeps it from confusing the .rx mapping.
Gamepad\ F310\ (Controller).z=trigger

# Logitech F310 gamepad with dip switch XInput for Windows 10
Controller\ (Gamepad\ F310).0=2
Controller\ (Gamepad\ F310).1=1
Controller\ (Gamepad\ F310).2=3
Controller\ (Gamepad\ F310).3=0

Controller\ (Gamepad\ F310).6=8
Controller\ (Gamepad\ F310).7=9

Controller\ (Gamepad\ F310).8=10
Controller\ (Gamepad\ F310).9=11

Controller\ (Gamepad\ F310).rx=z
Controller\ (Gamepad\ F310).ry=rz

# requires custom code to support trigger buttons but this
# keeps it from confusing the .rx mapping.
Controller\ (Gamepad\ F310).z=trigger

# Alternate version of the XBOX 360 controller
XBOX\ 360\ For\ Windows\ (Controller).0=2
XBOX\ 360\ For\ Windows\ (Controller).1=1
XBOX\ 360\ For\ Windows\ (Controller).2=3
XBOX\ 360\ For\ Windows\ (Controller).3=0

XBOX\ 360\ For\ Windows\ (Controller).6=8
XBOX\ 360\ For\ Windows\ (Controller).7=9

XBOX\ 360\ For\ Windows\ (Controller).8=10
XBOX\ 360\ For\ Windows\ (Controller).9=11

XBOX\ 360\ For\ Windows\ (Controller).rx=z
XBOX\ 360\ For\ Windows\ (Controller).ry=rz

# requires custom code to support trigger buttons but this
# keeps it from confusing the .rx mapping.
XBOX\ 360\ For\ Windows\ (Controller).z=trigger
