Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • rev138
    Participant
    Post count: 11

    I have one of these controllers (http://www.amazon.com/gp/product/B00G6CLXRK), and it seems to work fine, except for the hotkey functions.

    I have the hotkey button mapped to the “select” button (8, in this case), and everything behaves in emulationstation, but once I launch a game, it acts as if I’m holding down “select” when I am not (i.e. I hit “start”, and it quits because I have “select+start” mapped as the exit key). I tried mapping to another button (12) and it still acts as if I have the hotkey pressed. I even tried a second one of these controllers in case that one was a dud, and it has the same issue. I’m thinking this must be a bug and/or a config issue.

    Has anyone run into this?

    PS- I have an iBuffalo SNES controller and the hotkey function works perfectly

    Floob
    Member
    Post count: 1629

    Can you post your config file so we can see?

    gizmo98
    Participant
    Post count: 452

    If you configure “select” as a input_enable_hotkey_btn you also need an input_enable_hotkey for your keyboard. Strange but true…

    Floob
    Member
    Post count: 1629

    Maybe its the defaults in here:

    sudo ./retropie_setup.sh

    Option 3 – Setup
    Option 310 – Hotkey behaivour

    As per this post, I think you would want option 2

    geeks
    Participant
    Post count: 1

    gizmo, could you elaborate on this?

    > If you configure “select” as a input_enable_hotkey_btn you also need an input_enable_hotkey for your keyboard. Strange but true…

    rev138
    Participant
    Post count: 11

    Well, it looks like my problem was that I had followed this blog post: http://weekendengineer.wordpress.com/2014/09/02/auto-detecting-controllers-in-emulationstation-2-0

    I had to deviate slightly from the instructions because the controller detection option in retroarch-config doesn’t seem to work (no output), so I ran joyconfig manually and copied the output to a file in /opt/retropie/emulators/RetroArch/configs. This apparently does not work properly.

    I appended the contents of my custom config file to the main retroarch.cfg, and now the controller behaves properly (though it doesn’t switch mappings when I plug in a different controller, as was implied by that how-to.

    rev138
    Participant
    Post count: 11

    Upon further testing, it seems the auto-detection IS working. When I launch a game, I see a message in yellow flash on the bottom identifying the controller. However, when I do this, pressing “start” exits the game as if I had been holding down “select”. If I move the exact same settings directly into my retroarch.cfg, it works properly. Very weird.

    Floob
    Member
    Post count: 1629

    It might be to do with the position of the lines – can you post your auto config joypad file?

    rev138
    Participant
    Post count: 11
    input_device = "Performance Designed Products Rock Candy Wireless Gamepad for PS"
    input_driver = "udev"
    
    input_b_btn = "1"
    input_y_btn = "0"
    input_select_btn = "8"
    input_start_btn = "9"
    input_up_btn = "h0up"
    input_down_btn = "h0down"
    input_left_btn = "h0left"
    input_right_btn = "h0right"
    input_a_btn = "2"
    input_x_btn = "3"
    input_l_btn = "4"
    input_r_btn = "5"
    input_l2_btn = "6"
    input_r2_btn = "7"
    input_l_x_plus_axis = "+0"
    input_l_x_minus_axis = "-0"
    input_l_y_plus_axis = "+1"
    input_l_y_minus_axis = "-1"
    input_r_x_plus_axis = "+2"
    input_r_x_minus_axis = "-2"
    input_r_y_plus_axis = "+3"
    input_r_y_minus_axis = "-3"
    
    input_enable_hotkey_btn = "8"
    input_exit_emulator_btn = "6"
    input_save_state_btn = "4"
    input_load_state_btn = "5"
    
    Floob
    Member
    Post count: 1629

    Long shot, but try removing that blank line.

    Also, how does your retroarch.cfg compare to my working (with auto config file) one here?

    Also, in your example you dont have Start set to exit the emulator? You have l2 set too do that?

    thex
    Participant
    Post count: 23

    I had this exact issue.
    Try removing the quotes around the numbers for the hotkey and exit buttons, like below;

    input_enable_hotkey_btn = 8
    input_exit_emulator_btn = 6

    rev138
    Participant
    Post count: 11

    @thex: I tried that. No dice. Are you using those same gamepads?


    @floob
    : I don’t have start mapped to exit right now because I need to be able to use the start button. It doesn’t matter what button I use though, it exits without holding down the hotkey.

    Floob
    Member
    Post count: 1629

    You could try pasting your auto config into the main retroarch.cfg file and see if it works there.
    Did you try removing that blank line?

    rev138
    Participant
    Post count: 11

    After finding a couple more posts on this exact issue (which different people seem to have different working solutions to), I was finally able to make this work by moving these options out of the controller-specific config and into the main retroarch.cfg

    input_enable_hotkey = "tab"
    input_enable_hotkey_btn = 8
    input_exit_emulator_btn = 9
    input_save_state_btn = 4
    input_load_state_btn = 5

    Now it only exits on select+start, as it should. However, this is not ideal because if I use a different controller, those will map to different buttons :(

    Progress.

    Floob
    Member
    Post count: 1629

    Perhaps when you use the auto file, it is importing it before the
    input_enable_hotkey = “tab” line in your main retroarch.cfg file ?

    Therefore it gets overwritten by the keyboard tab setting later in that file?

    You could check this by putting it back how it was then run it and press tab and then a hotkey button on your joypad.

    For reference, this structure works fine for me (uses hotkey in auto file no problem).
    https://www.petrockblock.com/wp-content/uploads/2014/12/retroarch.txt

    You can compare yours here:

    https://www.diffchecker.com/

    As a side note, I really need to work out if it cares about the button codes being in quotes or not. “”.

    Floob
    Member
    Post count: 1629

    Actually thinking about it, it shouldnt matter as one is keyboard hotkey and one is joypad hotkey.

    It would still be interesting if you compare your retroarch.cfg to mine – anything drastically different?

    Also, does it make any difference if you take that blank line out of your auto file?

    rev138
    Participant
    Post count: 11

    Thanks for the comparison file. I tried mimicking your config somewhat in that I put

    input_hotkey_enable = escape

    in the main retroarch.cfg, and moved all the actual hotkey bindings to my controller-specific config file. This seems to work!

    Thanks again!

Viewing 17 posts - 1 through 17 (of 17 total)
  • You must be logged in to reply to this topic.