# VICE joystick mapping file
#
# A joystick map is read in as patch to the current map.
#
# File format:
# - comment lines start with '#'
# - keyword lines start with '!keyword'
# - normal line has 'joynum inputtype inputindex action'
#
# Keywords and their lines are:
# '!CLEAR'    clear all mappings
#
# inputtype:
# 0      axis
# 1      button
# 2      hat
# 3      ball
#
# Note that each axis has 2 inputindex entries and each hat has 4.
#
# action [action_parameters]:
# 0               none
# 1 port pin      joystick (pin: 1/2/4/8/16 = u/d/l/r/fire)
# 2 row col       keyboard
# 3               map
# 4               UI activate
# 5 path&to&item  UI function
#

!CLEAR

# Sony PLAYSTATION(R)3 Controller

# analog left -> joystick
# right
0 0 0 1 1 8
# left
0 0 1 1 1 4
# down
0 0 2 1 1 2
# up
0 0 3 1 1 1

0 0 4 1 1 16
0 0 5 1 1 16

# analog right
# right
0 0 6 1 1 8
# left
0 0 7 1 1 4
# down
0 0 8 2 0 7
# up
0 0 9 2 0 7

0 0 10 1 1 16
0 0 11 1 1 16

0 1 0 1 1 16
# O -> Space
0 1 1 2 7 4
# ^ -> RunStop
0 1 2 2 7 7
# # -> arrow left
0 1 3 2 7 1

# L1 -> N
0 1 4 2 4 7 
# R1 -> Y
0 1 5 2 3 1

0 1 6 1 1 16
0 1 7 1 1 16

# SELECT
0 1 8 5 Virtual keyboard
# START
0 1 9 4
# PS
0 1 10 5 Quit emulator

# L3 -> fire
0 1 11 1 1 16
# R3 - > return
0 1 12 2 0 1 

# DPAD -> joystick
# DPAD up
0 1 13 1 1 1
# DPAD down
0 1 14 1 1 2
# DPAD left
0 1 15 1 1 4
# DPAD right
0 1 16 1 1 8
 
