libretro / RetroArch

Cross-platform, sophisticated frontend for the libretro API. Licensed GPLv3.
http://www.libretro.com
GNU General Public License v3.0
10.24k stars 1.83k forks source link

Lightgun and Analog Stick Input Binds show as N/A when launching RetroArch Cores via CLI #8972

Open msheehan79 opened 5 years ago

msheehan79 commented 5 years ago

Description

Lightgun and Analog Stick Input Binds show as N/A when launching RetroArch Cores via CLI

Expected behavior

When accessing the Input Binding menu the Lightgun and Analog inputs should be displayed correctly.

Actual behavior

The input bind labels for the analog sticks and Light Gun show up as "User 1 N/A".

Steps to reproduce the bug

  1. Launch RetroArch with a core via CLI - Example: retroarch.exe -L "..\emulators\retroarch-cores\mesen_libretro.dll" "%rom%"

  2. Go to Settings/Input and select User 1 Binds. All of the Lightgun and Analog Stick inputs show as "N/A"

Bisect Results

Version/Commit

You can find this information under Information/System Information

Environment information

msheehan79 commented 5 years ago

Had some more time to troubleshoot this today. After playing around the config files I was able to get it to save the lightgun trigger and reload button bindings by adding the 2 lines below to the config file I pass in via CLI. The lack of default button mappings here which has been mentioned before does make this a little harder than expected to figure out, since I did not have to include any other input binding values in my config file for those buttons to work.

input_player1_gun_offscreen_shot_mbtn = "2" input_player1_gun_trigger_mbtn = "1"

But the labels all still display as N/A which is not consistent with how it shows up when loading without -L. It makes it a slightly more time consuming process to figure out which is the right button when setting bindings.