Floob
Member
Post count: 1629

There are some examples here:
https://github.com/ymartel06/GnGeo-Pi/wiki/Controllers

So it looks like:
UP=J0B0,DOWN=J0B1,LEFT=J0B2,RIGHT=J0B3

Some more details:

# some sample joystick configuration
# Xbox360
# p1control A=J0B0,B=J0B1,C=J0B2,D=J0B3,START=J0B6,COIN=J0B10,UP=J0a1,DOWN=J0a1,LEFT=J0A0,RIGHT=J0A0,MENU=J0B7
# Dualshock2
# p1control A=J0B2,B=J0B1,C=J0B3,D=J0B0,START=J0B9,COIN=J0B8,UP=J0a1,DOWN=J0a1,LEFT=J0A0,RIGHT=J0A0

# Meaning of the code:
# Kxxx : keyboad key number xxx
# JxByy : Joystick number x Button 
# JxAyy : Joystick number x Axe yy (use a lowercase 'a' if you need to invert the axis)
# JxHyy : Joystick number x Hat yy
# 
# by the way, you can define a button multiple time, for example A=J0B0,A=K123,etc..