How to change js0/js1/js2 and so on?

Welcome Page Forums RetroPie Project Everything else related to the RetroPie Project How to change js0/js1/js2 and so on?

This topic contains 4 replies, has 3 voices, and was last updated by Profile photo of white-elephant white-elephant 2 years, 7 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #35933
    Profile photo of malacai
    malacai
    Participant

    Hi there!

    i have 2 nes controllers hocked on to gpio. and it works great. controllers showing as js0 and js1.

    and now to the problem.

    when i hook on 2 usb snes controllers, those 2 controllers is js0/js1 ann my nes controllers is js2/js3.

    is there a way to ‘FORCE’ my nes controllers to be js0/js1?

    and big thx for an awsome image! RETROPIE

    /malacai

    #36985
    Profile photo of trimmtrabb
    trimmtrabb
    Participant

    Depends which emulators you are using but for the Retroarch emulators edit /opt/retropie/configs/all/retroarch.cfg and specify which pads are which players e.g. to use js3 for player 1:

    input_player1_joypad_index = 3

    If you have found the solution to your problem please mark the topic as resolved.

    #37151
    Profile photo of malacai
    malacai
    Participant

    Hey and thx for the reply.. yeh i have done so. but since i dont always want those usb controllers to be inserted.

    the only thing to do is some kind of .rules, since im not that good in linux but it should look something like:

    KERNEL==”js?”,ATTRS{name}==”DragonRise Inc. Generic USB Joystick “,ATTRS{phys}==”usb-0000:00:1d.0-2.1/input0″,NAME=”input/js2″
    KERNEL==”js?”,ATTRS{name}==”DragonRise Inc. Generic USB Joystick “,ATTRS{phys}==”usb-0000:00:1d.0-2.4/input0″,NAME=”input/js3”

    #82790
    Profile photo of white-elephant
    white-elephant
    Participant

    malacai,

    I seem to be trying to build the same configuration,
    did you find a solution?

    #82794
    Profile photo of white-elephant
    white-elephant
    Participant
Viewing 5 posts - 1 through 5 (of 5 total)

Forums are currently read only - please visit the new RetroPie forums at https://retropie.org.uk/forums/

Skip to toolbar