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

Hotkey volume change in-game



  • So I wanted to map to the D-Pad Up + Hotkey and D-Pad Down + Hotkey the ability to change the volume in-game. I went to /opt/retropie/configs/all/retroarch/autoconfig/<controller>.cfg
    and added
    input_volume_up_btn = "h0up"
    input_volume_down_btn = "h0down"
    Sadly that didn't work any idea why?



  • @retroboii

    Try this, it may work better. It came up in a discussion a month ago, but I haven’t tried it yet.

    input_volume_up_axis = +1 #Up on Joystick/d-pad
    input_volume_down_axis = -1 #Down on Joystick/d-pad
    input_audio_mute_axis = +0 #Left on Joystick/d-pad


  • Global Moderator

    @douga said in Hotkey volume change in-game:

    input_volume_up_axis = +1 #Up on Joystick/d-pad
    input_volume_down_axis = -1 #Down on Joystick/d-pad
    input_audio_mute_axis = +0 #Left on Joystick/d-pad
    

    I think these work in combination with the Hotkey button, so if you try these settings, hold Select and press up/down to change volume.



  • @mitu yes,sorry I should have said that.



  • @retroboii did you “nul” the hotkey buttons that were originally assigned to h0up and h0down? Plus as stated by others you need to press your hotkey plus the volume button.



  • @douga Tried it sadly didn't work do you have the link to the thread? maybe there are extra steps?



  • @retroboii
    It was something I had found on Reddit, but I can’t find the original source again. As @mitu mentioned, it works by holding select. There was an extra line for setting that up:
    input_enable_hotkey_btn = 8 #Select
    input_volume_up_axis = +1 #Up on Joystick
    input_volume_down_axis = -1 #Down on Joystick
    input_audio_mute_axis = +0 #Left on Joystick



  • I know this is an old topic, but I tested the given examples in previous posts and they did not work for me, that is not to say they did not work in older versions of retroarch, for the record I just tested on retroarch 4.5.9 on my retropie handheld system.

    To get the ingame hotkey volume control working add the following two lines to /opt/retropie/configs/all/retroarch.cfg;

    input_volume_up = "up"
    input_volume_down = "down"

    Below is an example excerpt showing that I added the new lines underneath there reference lines in the retroarch.cfg file, Lines starting with a hash symbol (#) mean that they will not be interpreted, and as a general rule of thumb in linux, often show what default values will be overriden by adding the new lines.

    "
    #Line 602...

    Increases audio volume.

    input_volume_up = kp_plus

    input_volume_up = "up"

    Decreases audio volume.

    input_volume_down = kp_minus

    input_volume_down = "down"
    #Line 609...
    "

    Note: I tend to use the volume control menu in emulation station to set the "master volume" for want of a better phrase then the in game volume for fine grained adjustment.

    Hope it helps someone, if so upvote.



  • For some reason I can not edit my own post without it being reported as spam, here is the excerpt again with the quotes correctly displayed rather than being interpreted by the forum page as a mark up.

    #Line 602...
    #Increases audio volume.
    #input_volume_up = kp_plus
    input_volume_up = "up"
    #Decreases audio volume.
    #input_volume_down = kp_minus
    input_volume_down = "down"
    #Line 609...
    "



  • Anicetus_Cer
    Anicetus_Cer 21 minutes ago

    I know this is an old topic, but I tested the given examples in previous posts and they did not work for me, that is not to say they did not work in older versions of retroarch, for the record I just tested on retroarch 4.5.9 on my retropie handheld system.

    To get the ingame hotkey volume control working add the following two lines to /opt/retropie/configs/all/retroarch.cfg;

    input_volume_up = "up"
    input_volume_down = "down"

    Below is an example excerpt showing that I added the new lines underneath there reference lines in the retroarch.cfg file, Lines starting with a hash symbol (#) mean that they will not be interpreted, and as a general rule of thumb in linux, often show what default values will be overriden by adding the new lines.

    #Line 602...
    #Increases audio volume.
    #input_volume_up = kp_plus
    input_volume_up = "up"
    #Decreases audio volume.
    #input_volume_down = kp_minus
    input_volume_down = "down"
    #Line 609...
    

    Note: I tend to use the volume control menu in emulation station to set the "master volume" for want of a better phrase then the in game volume for fine grained adjustment.

    Hope it helps someone, if so upvote.



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.