Homepage Forums RetroPie Project Everything else related to the RetroPie Project Joystick Inverted in piFba NEED HELP

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #83012
    riggatrigga
    Participant

    ive been banging my head against the wall with this problem for a couple of weeks now searching through forums for help i built a cabinet with joysticks and buttons and have been successful on getting all the emulators working except for pifba it inverts my up/down on my joysticks and cant seem to figure out how to solve it.

    ive edited the fba2x.cfg file a thousand times now and nothing seems to invert the joystick axis does anyone know the code combination i need to invert the up/down

    heres my latest cfg file everything works except for inverted up/down

    [Keyboard]
    # Get codes from /usr/include/SDL/SDL_keysym.h
    #Using default Mame key mapping
    A_1=306 #LeftControl
    B_1=32 #Space
    X_1=308 #LeftAlt
    Y_1=304 #LeftShift
    L_1=122 #z
    R_1=120 #x
    START_1=49 #1
    SELECT_1=53 #5
    #LEFT_1=J0A1 #Left
    #RIGHT_1=J0A1 #Right
    #UP_1=J0a1 #Up
    #DOWN_1=J0a1 #Down
    QUIT=27 #Escape
    #player 2 keyboard controls, disabled by default
    A_2=97 #a
    B_2=113 #q
    X_2=115 #s
    Y_2=119 #w
    L_2=101 #e
    R_2=116 #t
    START_2=50 #2
    SELECT_2=54 #6
    LEFT_2=100 #d
    RIGHT_2=103 #g
    UP_2=114 #r
    DOWN_2=102 #f

    [Joystick]
    #1 = XinMoSupport, 0 = standard
    XinMoSupport=0

    # Get codes from “jstest /dev/input/js0”
    # from package “joystick”
    A_1=0
    B_1=1
    X_1=2
    Y_1=3
    L_1=6
    R_1=7
    START_1=9
    SELECT_1=8
    #Joystick axis
    JA_LR=1
    JA_UD=0

    #player 2 button configuration
    A_2=0
    B_2=1
    X_2=2
    Y_2=3
    L_2=6
    R_2=7
    START_2=4
    SELECT_2=5
    #Joystick axis
    JA_LR_2=0
    JA_UD_2=1

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

    [Sound]

    #83524
    davidesm
    Participant

    Did you ever discover a solution? Right now my left/right is inverted in pifba.

    #84312
    dpicc68
    Participant

    I’m having the same issue.

    Joystick is inverted……
    I’m using a THT sub encoder 2 player.

    Did you ever resolve this??

    #84314
    Floob
    Member
    #84407
    dpicc68
    Participant

    It doesn’t work…..

    I am going to have to switch my wires… To fix the inverted joystick…

    The other issue I am having is getting 2 players to work in PiFBA.
    The THT usb encoder is mapped to js0 for both controllers…
    The joysticks are “0”,”1″ + “2”,”3″ both use + & – 32767 respectively.
    Buttons are from 0 to 17…..

    Ran a jtest and all are responsive.(other emu work)
    But PiFBA does not recognise the second player.

    See cfg file.

    [Keyboard]
    # Get codes from /usr/include/SDL/SDL_keysym.h
    A_1=306
    B_1=32
    X_1=308
    Y_1=304
    L_1=122
    R_1=120
    START_1=13
    SELECT_1=9
    LEFT_1=-32767
    RIGHT_1=32767
    UP_1=+32767
    DOWN_1=-32767
    QUIT=27
    #player 2 keyboard controls, disabled by default
    A_2=999
    B_2=999
    X_2=999
    Y_2=999
    L_2=999
    R_2=999
    START_2=999
    SELECT_2=999
    LEFT_2=-32767
    RIGHT_2=+32767
    UP_2=+32767
    DOWN_2=-32767

    [Joystick]
    # Get codes from “jstest /dev/input/js0”
    # from package “joystick”
    A_1=1
    B_1=0
    X_1=4
    Y_1=3
    L_1=4
    R_1=5
    START_1=7
    SELECT_1=6
    #Joystick axis
    JA_LR=1
    JA_UD=0
    #player 2 button configuration
    A_2=11
    B_2=10
    X_2=14
    Y_2=13
    L_2=15
    R_2=12
    START_2=9
    SELECT_2=16
    #Joystick axis
    JA_LR_2=3
    JA_UD_2=2

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

    [Sound]

    Any help would be good?.

    ALSO…….

    I’ve READ that you can edit the /rpi/fba_player.cpp as setout on

    https://github.com/retropie/RetroPie-Setup/wiki/Troubles-with-the-Xin-Mo-Controller

    apparently the XinMo + THT are similar.

    I’m not sure where to find the cpp file… is it already on retropie image?? or do I need to compile it?? if so…. how do you compile it??

    System is nearly setup… see attached image of my first Cab build….
    Big shoutout to floob and others on the forum.

    #85019
    dpicc68
    Participant
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘Everything else related to the RetroPie Project’ is closed to new topics and replies.