PiFBA arcade stick LEFT/RIGH/UP/DOWN axis. How change?
  • I have usb arcade stick.

    How change this on fba2x.cfg?
    #Joystick axis
    JA_LR=0
    JA_UD=1

    My arcade stick left/right/up/down is 7 / 5 / 4 / 6

    On this page https://code.google.com/p/pifba/ is written "All controls are configurable by editing the "fba2x.cfg" file. If your joystick uses axis different than 0 and 1 you can change this in the fbax2.cfg file. "

    Where is this "fbax2.cfg" file?
    I can not find it anywhere :(
  • /home/pi/emulators/fba/fba2x.cfg
  • i know but ask for fbax2.cfg not fba2x.cfg

    Possibly please advice on how to modify fba2x.cfg in order to handle these buttons left/right/up/down > 7 / 5 / 4 / 6

    Sorry for my English :D
  • it was a mistype in code.google.com/p/pifba documentation. The file that you edit is:
    /home/pi/emulators/fba/fba2x.cfg

    Here is an example of what it should look like (this is my current config)

    [Keyboard]
    # Get codes from /usr/include/SDL/SDL_keysym.h
    A_1=13
    B_1=32
    X_1=305
    Y_1=303
    L_1=122
    R_1=120
    START_1=49
    SELECT_1=50
    LEFT_1=276
    RIGHT_1=275
    UP_1=273
    DOWN_1=274
    QUIT=27
    #player 2 keyboard controls, disabled by default
    A_2=114
    B_2=116
    X_2=121
    Y_2=117
    L_2=999
    R_2=999
    START_2=50
    SELECT_2=49
    LEFT_2=97
    RIGHT_2=100
    UP_2=119
    DOWN_2=115

    [Joystick]
    # Get codes from "jstest /dev/input/js0"
    # from package "joystick"
    A_1=0
    B_1=1
    X_1=2
    Y_1=3
    L_1=4
    R_1=6
    START_1=9
    SELECT_1=8
    #Joystick axis
    JA_LR=0
    JA_UD=1
    #player 2 button configuration
    A_2=0
    B_2=1
    X_2=2
    Y_2=3
    L_2=4
    R_2=6
    START_2=9
    SELECT_2=8
    #Joystick axis
    JA_LR_2=0
    JA_UD_2=1

    [Graphics]
    DisplaySmoothStretch=1
    # Display Effect: 0 none, 1 scanlines
    DisplayEffect=0
    DisplayBorder=0
    MaintainAspectRatio=1

    [Sound]

  • i have problem for #Joystick axis because my arcade stick no have axis

    i dont know change this
    #Joystick axis
    JA_LR_2=0
    JA_UD_2=1

    my arcade stick recognizes left/right/up/down separately

    buttons is working fine but joistick no

    this is my arcade stick http://www.amazon.co.uk/GTMax-Fight-Stick-PS3-PS2/dp/B007ZVV0KQ
  • I think that your joystick might be using a keyboard encoder, that's why you don't have any axis. I would try editing the [keyboard] section to see if you get any results. There are two possibilities to try since it is outputting numbers.

    Try this one to test if it's outputting keys from the number row.
    [Keyboard]
    LEFT_1=55
    RIGHT_1=53
    UP_1=52
    DOWN_1=54

    Try this one to test if it's outputting keys from the 9-key (numeric keypad on the right)
    [Keyboard]
    LEFT_1=263
    RIGHT_1=261
    UP_1=260
    DOWN_1=262
  • I connect to the working raspberry and it worked on default config.
    It's not working if connect to off raspberry.

    I have another problem. When you reset the raspberry. Setting the reset and the joystick does not work. How save joystick settings?
  • Re-installed pimame and works. The problem was the update raspbian (changed my root read only).
  • do either of you guys know how to configure the 'insert coin' button on a joystick/gamepad? I like its probably staring me in the face, but i cant find it anywhere, not in the readme or the fba2x config...
  • Is the "Insert Coin" button just a normal button? I'll have a look through the documentation but I don't use FBA often, Sorry. Just try running evtest to work out a bit about the button.

    Good luck
  • im looking for this insert coin too. anyone knows?
  • its SELECT
  • anyone could run FBA with player 2 inputs OK?

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!