Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: Problems setting input: Wired Xbox 360 Controller #2581
    dave407
    Participant
    in reply to: Problems setting input: Wired Xbox 360 Controller #2580
    dave407
    Participant

    No problem buddy!

    Im a NOOB in the raspberry pi thing, and i’ve been working on this a couple of days to get it right. So feel free to let me know if this has worked for you.

    And don’t forget to change this (in my first reply):
    ./retroarch-joyconfig -o p1.cfg -p 1 -j <strong>1</strong>
    into this:
    ./retroarch-joyconfig -o p1.cfg -p 1 -j 1

    PS: I have also used this guide;

    but one of the last codes (to make it pretty), bugged the emulationstation

    cd RetroPie/supplementary
    git clone http://github.com/elpendor/ES-scraper
    cd
    cd RetroPie-Setup
    sudo ./retropie_setup.sh 

    This code above gave me a white screen. The RetroPie still works, but you can’t see the menu. But the menu becomes visible again when you start a game and then return to the menu. This bug occurs every time my raspberry is powered on. So I would strongly advise to not execute this last step.

    in reply to: Problems setting input: Wired Xbox 360 Controller #2577
    dave407
    Participant

    When you did the same thing as I did, your retroarch.cfg file should look like this (/home/pi/RetroPie/configs/all):

    input_player1_joypad_index = “1”
    input_player1_b_btn = “1”
    input_player1_y_btn = “3”
    input_player1_select_btn = “8”
    input_player1_start_btn = “9”
    input_player1_up_axis = “-5”
    input_player1_down_axis = “+5”
    input_player1_left_axis = “-4”
    input_player1_right_axis = “+4”
    input_player1_a_btn = “0”
    input_player1_x_btn = “2”
    input_player1_l_btn = “4”
    input_player1_r_btn = “5”
    input_player1_l2_btn = “6”
    input_player1_r2_btn = “7”
    input_player1_l3_btn = “11”
    input_player1_r3_btn = “12”
    input_player1_l_x_plus_axis = “+0”
    input_player1_l_x_minus_axis = “-0”
    input_player1_l_y_plus_axis = “+1”
    input_player1_l_y_minus_axis = “-1”
    input_player1_r_x_plus_axis = “+2”
    input_player1_r_x_minus_axis = “-2”
    input_player1_r_y_plus_axis = “+3”
    input_player1_r_y_minus_axis = “-3”

    This seems to work, but the a,b,x,y buttons are mixed for the ps1 emulator. To solve this problem, go to this directory (in startx explorer)
    /home/pi/RetroPie/configs/psx

    In this folder, you should open retroarch.cfg
    Any changes made in this config, will overrule the basic one in the “all” folder.
    So this is how this config should look (you will have to edit this yourself)

    input_player1_joypad_index = “1”
    input_player1_b_btn = “0”
    input_player1_y_btn = “2”
    input_player1_select_btn = “8”
    input_player1_start_btn = “9”
    input_player1_up_axis = “-5”
    input_player1_down_axis = “+5”
    input_player1_left_axis = “-4”
    input_player1_right_axis = “+4”
    input_player1_a_btn = “1”
    input_player1_x_btn = “3”
    input_player1_l_btn = “4”
    input_player1_r_btn = “5”
    input_player1_l2_btn = “6”
    input_player1_r2_btn = “7”
    input_player1_l3_btn = “11”
    input_player1_r3_btn = “12”
    input_player1_l_x_plus_axis = “+0”
    input_player1_l_x_minus_axis = “-0”
    input_player1_l_y_plus_axis = “+1”
    input_player1_l_y_minus_axis = “-1”
    input_player1_r_x_plus_axis = “+2”
    input_player1_r_x_minus_axis = “-2”
    input_player1_r_y_plus_axis = “+3”
    input_player1_r_y_minus_axis = “-3”

    Let me know if this was any use to you…

    in reply to: Problems setting input: Wired Xbox 360 Controller #2576
    dave407
    Participant

    Something went wrong in one of the above commands. This is what it should be;

    cd ~/RetroPie/emulators/RetroArch/tools
    ./retroarch-joyconfig -o p1.cfg -p 1 -j 1

    So
    cd ~/RetroPie/emulators/RetroArch/tools
    ./retroarch-joyconfig -o p1.cfg -p 1 -j 1

    in reply to: Problems setting input: Wired Xbox 360 Controller #2574
    dave407
    Participant

    Hey,

    Had the same problem, but now my Retropie is up and running with my 360 controller. I had a few hickups, but hey, I got mine working.

    This is what I had to do (wired controller):

    Download+install the driver (you’ll need internet connection for this);
    sudo apt-get install xboxdrv

    Edit the rc.local
    sudo nano /etc/rc.local

    add this text (just before the last line that says exit 0);

    xboxdrv --trigger-as-button --id 0 --led 2 --deadzone 4000 --silent &
    sleep 1

    then reboot;
    sudo reboot

    After Retropie has restarted, exit to the command prompt with F4.
    You should notice that there is only 1 light lit on your controller.

    cd ~/RetroPie/emulators/RetroArch/tools
    ./retroarch-joyconfig -o p1.cfg -p 1 -j <strong>1</strong>

    THIS IS WHERE YOUR PROBLEM AND MINE WAS LOCATED
    If you follow the original instructions, you would use
    ./retroarch-joyconfig -o p1.cfg -p 1 -j 0
    When I’ve used this line, the raspberry tried setting up controls with my keyboard. To use the x360 controller for setup, I needed to change this number to one.

    The next thing I did was;
    sudo cat p1.cfg >> ~/RetroPie/configs/all/retroarch.cfg

    But this didn’t seem to do much. Even with extra permissions;

    sudo chmod 777 RetroPie/configs/all/retroarch.cfg
    sudo cat p1.cfg >> ~/RetroPie/configs/all/retroarch.cfg

    These commands didn’t do anything for me. So this is what I did:
    sudo reboot

    After rebooting and starting up, press F4 and use this command:
    startx
    Having a mouse connected at this point will make things much easier :)

    Then look for the file browser and go to /home/pi/RetroPie/emulators/RetroArch/tools
    In there you should find the file p1.cfg (You made this yourself)
    Open this file with leafpad (or another text editor) and copy the text
    Leave this text file open, as it seems to be impossible to copy this text if the file is closed.

    Then go to:
    /home/pi/RetroPie/configs/all
    Open the retroarch.cfg file with your text editor, and paste your text in here.

    Now all you have to do is log off and reboot, and see if this has worked for you.
    Let me know if you had any results with this.

Viewing 5 posts - 1 through 5 (of 5 total)