Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

Help for xbox one config in pifba



  • Hi guys. I install retropie 4.2 in my Pi zero and my xbox one S controller via bluetooth.

    version: 4.2 (update and upgrade all I can)
    Pi: Pi zero (not W)
    Controller: Xbox one S (with newest update)

    My problem is I can't use my xbox one controller in Pifba. Even I edit fba2x.cfg
    jstest /dev/input/js0 even doesn't work in ssh, I can't see any change on/off in my macOS ssh terminal.

    How can I do to use my xbox controller in PIFBA? as you know. only PIFBA can run smoothly in Pi zero.

    Thank a lot for your helping. :)



  • @kenwong

    jstest /dev/input/js0 even doesn't work in ssh, I can't see any change on/off in my macOS ssh terminal.

    That's odd. What do you see when you are SSH'd in and you type:

    ls /dev/input/
    

    The reason I ask is because you might need to do jstest /dev/input/js1 instead.



  • @backstander
    Thank you ! backstander, I try jstest /dev/input/js2, it work's know.
    However, I am sure the select button I map in my controller is "13".
    but It doesn't work even I edit the fba2x.cfg.

    there is my fba2x.cfg.
    ///////////---------------------------//////
    [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=276
    RIGHT_1=275
    UP_1=273
    DOWN_1=274
    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=999
    RIGHT_2=999
    UP_2=999
    DOWN_2=999

    [Joystick]

    Get codes from "jstest /dev/input/js2"

    from package "joystick"

    A_1=0
    B_1=1
    X_1=3
    Y_1=4
    L_1=4
    R_1=5
    START_1=6
    SELECT_1=13
    #Joystick axis
    JA_LR=0
    JA_UD=3
    #player 2 button configuration
    A_2=3
    B_2=0
    X_2=2
    Y_2=1
    L_2=7
    R_2=5
    START_2=11
    SELECT_2=13
    #Joystick axis
    JA_LR_2=0
    JA_UD_2=1

    [Graphics]
    DisplaySmoothStretch=1

    Display Effect: 0 none, 1 scanlines

    DisplayEffect=0
    DisplayBorder=0
    ///////---------------------------/////
    what's wrong?



  • @kenwong

    However, I am sure the select button I map in my controller is "13".

    My guess would be that the Select Button is one number less than the Start Button?

    I think my Start button is "9" and my Select button is "8" (or something like that)


  • administrators

    @kenwong When posting configs please use markdown and a code block or else data is lost as styling. http://commonmark.org/help/


Log in to reply
 

Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.