Configure controls for "--menu"

Hello,

I was able to set-up retroarch and configure an analog joystick to play with. I use the “–menu” option as start point from which I can choose the CORE and the games. I have still an issue. To navigate the menu I can use only the default ARROWS and “x” for select and “z” for back. How can I replace them with my joypad (input_player1_joypad_index = “1”) ?? Which parameters do I need to set to tell retroarch to use the joypad instead the keyboard and the choosen bottons instead “x” and “z”?

Many thanks!!

Simon

go into the input settings and map the ‘retropad’ buttons. ‘B’ and ‘A’ are pre-mapped to ‘Z’ and ‘X’, respectively, by default, so just remap them to your gamepad buttons and they’ll work in the menus, too. You may have to specify your config file on the command line with the -c switch, as well, but probably not.

You mean:

input_player1_a = “x” and input_player1_b = “z”

Those are the only I see set to “x” and “z”?

Ok, that worked…

But, how to map to use the joystick in the menu instead the arrows (up/down/left/right)?

I’ve tried setting -1 +1 -0 +0 like used by game, but doesn’t work. In example:

FROM:

input_player1_up = “up” to input_player1_up = “-1”

But doesn’t work anymore.

Maybe somewhere I’ve to tell that to navigate the menu I use the joystick instead the keys?

Thanks!

Set analog dpad mode to ‘left analog’

Sorry, I’m not able to test it in this right moment. You mean like follow:

input_player1_up = “up analog” (…)

Thanks, Simon

no, like this: input_player1_analog_dpad_mode = “1”

Great, I’ll test it and let you know :slight_smile:

Simon

Hello.

Setting input_player1_analog_dpad_mode to “1” as suggested it doesn’t work, neither from the menu and the joystick stops to work on the games too.

Here my best working complete cfg file. In this version, joystick works well on games, but navigation is still with arrows. I would like to use ONLY the joystick.

Thanks for the help!

system_directory = "/opt/retroarch/system"
video_driver = "gl"
input_player1_joypad_index = "1"
input_player1_b_btn = "0"
input_player1_y_btn = "2"
input_player1_select_btn = "6"
input_player1_start_btn = "7"
input_player1_up_axis = "-1"
input_player1_down_axis = "+1"
input_player1_left_axis = "-0"
input_player1_right_axis = "+0"
input_player1_a_btn = "1"
input_player1_x_btn = "4"
input_player1_l_btn = "8"
input_player1_r_btn = "8"
input_player1_l2_btn = "8"
input_player1_r2_btn = "8"
input_player1_l3_btn = "8"
input_player1_r3_btn = "8"
input_player1_l_x_plus_btn = "8"
input_player1_l_x_minus_btn = "8"
input_player1_l_y_plus_btn = "8"
input_player1_l_y_minus_btn = "8"
input_player1_r_x_plus_btn = "8"
input_player1_r_x_minus_btn = "8"
input_player1_r_y_plus_btn = "8"
input_player1_r_y_minus_btn = "8"
input_axis_threshold = "0.500000"
load_dummy_on_core_shutdown = "true"
fps_show = "false"
libretro_path = "/usr/lib/libretro/libretro-imame4all.so"
rewind_enable = "false"
audio_latency = "64"
audio_sync = "true"
audio_block_frames = "0"
rewind_granularity = "1"
video_shader_enable = "false"
video_aspect_ratio = "-1.000000"
video_windowed_fullscreen = "true"
video_scale = "3.000000"
autosave_interval = "0"
video_crop_overscan = "true"
video_scale_integer = "false"
video_smooth = "true"
video_threaded = "false"
video_shared_context = "false"
video_force_srgb_disable = "false"
video_fullscreen = "false"
video_refresh_rate = "59.950001"
video_monitor_index = "0"
video_fullscreen_x = "0"
video_fullscreen_y = "0"
menu_driver = "rgui"
video_vsync = "true"
video_hard_sync = "false"
video_hard_sync_frames = "0"
video_frame_delay = "0"
video_black_frame_insertion = "false"
video_disable_composition = "false"
pause_nonactive = "false"
video_swap_interval = "1"
video_gpu_screenshot = "true"
video_rotation = "0"
screenshot_directory = "default"
aspect_ratio_index = "19"
camera_allow = "false"
audio_rate_control = "true"
audio_rate_control_delta = "0.005000"
audio_driver = "alsa"
audio_enable = "true"
audio_out_rate = "48000"
location_allow = "false"
video_font_size = "32.000000"
video_font_enable = "true"
audio_resampler = "sinc"
savefile_directory = "default"
savestate_directory = "default"
video_shader_dir = "default"
video_filter_dir = "default"
audio_filter_dir = "default"
content_directory = "default"
assets_directory = "default"
playlist_directory = "default"
rgui_browser_directory = "/opt/retroarch/roms/mame/mame037b5"
rgui_config_directory = "default"
rgui_show_start_screen = "false"
game_history_path = "/etc/retroarch-content-history.txt"
game_history_size = "100"
input_autodetect_enable = "true"
overlay_directory = "default"
input_overlay_opacity = "0.700000"
input_overlay_scale = "1.000000"
video_message_pos_x = "0.050000"
video_message_pos_y = "0.050000"
gamma_correction = "false"
soft_filter_enable = "false"
flicker_filter_enable = "false"
flicker_filter_index = "0"
soft_filter_index = "0"
current_resolution_id = "0"
custom_viewport_width = "768"
custom_viewport_height = "768"
custom_viewport_x = "0"
custom_viewport_y = "0"
block_sram_overwrite = "false"
savestate_auto_index = "false"
savestate_auto_save = "false"
savestate_auto_load = "false"
fastforward_ratio = "-1.000000"
slowmotion_ratio = "3.000000"
config_save_on_exit = "true"
sound_mode = "0"
state_slot = "0"
user_language = "0"
custom_bgm_enable = "false"
input_driver = "udev"
input_device_p1 = "0"
input_libretro_device_p1 = "1"
input_player1_analog_dpad_mode = "0"
input_device_p2 = "0"
input_libretro_device_p2 = "1"
input_device_p3 = "0"
input_player3_joypad_index = "2"
input_libretro_device_p3 = "1"
input_player3_analog_dpad_mode = "0"
input_device_p4 = "0"
input_player4_joypad_index = "3"
input_libretro_device_p4 = "1"
input_player4_analog_dpad_mode = "0"
input_device_p5 = "0"
input_player5_joypad_index = "4"
input_libretro_device_p5 = "1"
input_player5_analog_dpad_mode = "0"
input_device_p6 = "0"
input_player6_joypad_index = "5"
input_libretro_device_p6 = "1"
input_player6_analog_dpad_mode = "0"
input_device_p7 = "0"
input_player7_joypad_index = "6"
input_libretro_device_p7 = "1"
input_player7_analog_dpad_mode = "0"
input_device_p8 = "0"
input_player8_joypad_index = "7"
input_libretro_device_p8 = "1"
input_player8_analog_dpad_mode = "0"
input_device_p9 = "0"
input_player9_joypad_index = "8"
input_libretro_device_p9 = "1"
input_player9_analog_dpad_mode = "0"
input_device_p10 = "0"
input_player10_joypad_index = "9"
input_libretro_device_p10 = "1"
input_player10_analog_dpad_mode = "0"
input_device_p11 = "0"
input_player11_joypad_index = "10"
input_libretro_device_p11 = "1"
input_player11_analog_dpad_mode = "0"
input_device_p12 = "0"
input_player12_joypad_index = "11"
input_libretro_device_p12 = "1"
input_player12_analog_dpad_mode = "0"
input_device_p13 = "0"
input_player13_joypad_index = "12"
input_libretro_device_p13 = "1"
input_player13_analog_dpad_mode = "0"
input_device_p14 = "0"
input_player14_joypad_index = "13"
input_libretro_device_p14 = "1"
input_player14_analog_dpad_mode = "0"
input_device_p15 = "0"
input_player15_joypad_index = "14"
input_libretro_device_p15 = "1"
input_player15_analog_dpad_mode = "0"
input_device_p16 = "0"
input_player16_joypad_index = "15"
input_libretro_device_p16 = "1"
input_player16_analog_dpad_mode = "0"
input_player1_b = "0"
input_player1_b_axis = "nul"
input_player1_y = "a"
input_player1_y_axis = "nul"
input_player1_select = "rshift"
input_player1_select_axis = "nul"
input_player1_start = "enter"
input_player1_start_axis = "nul"
input_player1_up = "up"
input_player1_up_btn = "-1"
input_player1_down = "+1"
input_player1_down_btn = "nul"
input_player1_left = "-0"
input_player1_left_btn = "nul"
input_player1_right = "+0"
input_player1_right_btn = "nul"
input_player1_a = "1"
input_player1_a_axis = "nul"
input_player1_x = "s"
input_player1_x_axis = "nul"
input_player1_l = "q"
input_player1_l_axis = "nul"
input_player1_r = "w"
input_player1_r_axis = "nul"
input_player1_l2 = "nul"
input_player1_l2_axis = "nul"
input_player1_r2 = "nul"
input_player1_r2_axis = "nul"
input_player1_l3 = "nul"
input_player1_l3_axis = "nul"
input_player1_r3 = "nul"
input_player1_r3_axis = "nul"
input_player1_l_x_plus = "nul"
input_player1_l_x_plus_axis = "nul"
input_player1_l_x_minus = "nul"
input_player1_l_x_minus_axis = "nul"
input_player1_l_y_plus = "nul"
input_player1_l_y_plus_axis = "nul"
input_player1_l_y_minus = "nul"
input_player1_l_y_minus_axis = "nul"
input_player1_r_x_plus = "nul"
input_player1_r_x_plus_axis = "nul"
input_player1_r_x_minus = "nul"
input_player1_r_x_minus_axis = "nul"
input_player1_r_y_plus = "nul"
input_player1_r_y_plus_axis = "nul"
input_player1_r_y_minus = "nul"
input_player1_r_y_minus_axis = "nul"
input_player1_turbo = "nul"
input_player1_turbo_btn = "nul"
input_player1_turbo_axis = "nul"
input_toggle_fast_forward = "space"
input_toggle_fast_forward_btn = "nul"
input_toggle_fast_forward_axis = "nul"
input_hold_fast_forward = "l"
input_hold_fast_forward_btn = "nul"
input_hold_fast_forward_axis = "nul"
input_load_state = "f4"
input_load_state_btn = "nul"
input_load_state_axis = "nul"
input_save_state = "f2"
input_save_state_btn = "nul"
input_save_state_axis = "nul"
input_toggle_fullscreen = "f"
input_toggle_fullscreen_btn = "nul"
input_toggle_fullscreen_axis = "nul"
input_exit_emulator = "escape"
input_exit_emulator_btn = "nul"
input_exit_emulator_axis = "nul"
input_state_slot_increase = "f7"
input_state_slot_increase_btn = "nul"
input_state_slot_increase_axis = "nul"
input_state_slot_decrease = "f6"
input_state_slot_decrease_btn = "nul"
input_state_slot_decrease_axis = "nul"
input_rewind = "r"
input_rewind_btn = "nul"
input_rewind_axis = "nul"
input_movie_record_toggle = "o"
input_movie_record_toggle_btn = "nul"
input_movie_record_toggle_axis = "nul"
input_pause_toggle = "p"
input_pause_toggle_btn = "nul"
input_pause_toggle_axis = "nul"
input_frame_advance = "k"
input_frame_advance_btn = "nul"
input_frame_advance_axis = "nul"
input_reset = "h"
input_reset_btn = "nul"
input_reset_axis = "nul"
input_shader_next = "m"
input_shader_next_btn = "nul"
input_shader_next_axis = "nul"
input_shader_prev = "n"
input_shader_prev_btn = "nul"
input_shader_prev_axis = "nul"
input_cheat_index_plus = "y"
input_cheat_index_plus_btn = "nul"
input_cheat_index_plus_axis = "nul"
input_cheat_index_minus = "t"
input_cheat_index_minus_btn = "nul"
input_cheat_index_minus_axis = "nul"
input_cheat_toggle = "u"
input_cheat_toggle_btn = "nul"
input_cheat_toggle_axis = "nul"
input_screenshot = "f8"
input_screenshot_btn = "nul"
input_screenshot_axis = "nul"
input_audio_mute = "f9"
input_audio_mute_btn = "nul"
input_audio_mute_axis = "nul"
input_netplay_flip_players = "i"
input_netplay_flip_players_btn = "nul"
input_netplay_flip_players_axis = "nul"
input_slowmotion = "e"
input_slowmotion_btn = "nul"
input_slowmotion_axis = "nul"
input_enable_hotkey = "nul"
input_enable_hotkey_btn = "nul"
input_enable_hotkey_axis = "nul"
input_volume_up = "add"
input_volume_up_btn = "nul"
input_volume_up_axis = "nul"
input_volume_down = "subtract"
input_volume_down_btn = "nul"
input_volume_down_axis = "nul"
input_overlay_next = "nul"
input_overlay_next_btn = "nul"
input_overlay_next_axis = "nul"
input_disk_eject_toggle = "nul"
input_disk_eject_toggle_btn = "nul"
input_disk_eject_toggle_axis = "nul"
input_disk_next = "nul"
input_disk_next_btn = "nul"
input_disk_next_axis = "nul"
input_grab_mouse_toggle = "f11"
input_grab_mouse_toggle_btn = "nul"
input_grab_mouse_toggle_axis = "nul"
input_menu_toggle = "f1"
input_menu_toggle_btn = "nul"
input_menu_toggle_axis = "nul"
core_specific_config = "false"
libretro_log_level = "0"
log_verbosity = "false"
perfcnt_enable = "false"
libretro_directory = "/usr/lib/libretro"
input_player2_joypad_index = "0"
input_player2_b_btn = "0"
input_player2_y_btn = "2"
input_player2_select_btn = "6"
input_player2_start_btn = "7"
input_player2_up_axis = "-1"
input_player2_down_axis = "+1"
input_player2_left_axis = "-0"
input_player2_right_axis = "+0"
input_player2_a_btn = "1"
input_player2_x_btn = "4"
input_player2_l_btn = "8"
input_player2_r_btn = "8"
input_player2_l2_btn = "8"
input_player2_r2_btn = "8"
input_player2_l3_btn = "8"
input_player2_r3_btn = "8"
input_player2_l_x_plus_btn = "8"
input_player2_l_x_minus_btn = "8"
input_player2_l_y_plus_btn = "8"
input_player2_l_y_minus_btn = "8"
input_player2_r_x_plus_btn = "8"
input_player2_r_x_minus_btn = "8"
input_player2_r_y_plus_btn = "8"
input_player2_r_y_minus_btn = "8"
input_player2_analog_dpad_mode = "0"
input_player2_b = "z"
input_player2_b_axis = "nul"
input_player2_y = "a"
input_player2_y_axis = "nul"
input_player2_select = "rshift"
input_player2_select_axis = "nul"
input_player2_start = "enter"
input_player2_start_axis = "nul"
input_player2_up = "up"
input_player2_up_btn = "nul"
input_player2_down = "down"
input_player2_down_btn = "nul"
input_player2_left = "left"
input_player2_left_btn = "nul"
input_player2_right = "right"
input_player2_right_btn = "nul"
input_player2_a = "x"
input_player2_a_axis = "nul"
input_player2_x = "s"
input_player2_x_axis = "nul"
input_player2_l = "q"
input_player2_l_axis = "nul"
input_player2_r = "w"
input_player2_r_axis = "nul"
input_player2_l2 = "nul"
input_player2_l2_axis = "nul"
input_player2_r2 = "nul"
input_player2_r2_axis = "nul"
input_player2_l3 = "nul"
input_player2_l3_axis = "nul"
input_player2_r3 = "nul"
input_player2_r3_axis = "nul"
input_player2_l_x_plus = "nul"
input_player2_l_x_plus_axis = "nul"
input_player2_l_x_minus = "nul"
input_player2_l_x_minus_axis = "nul"
input_player2_l_y_plus = "nul"
input_player2_l_y_plus_axis = "nul"
input_player2_l_y_minus = "nul"
input_player2_l_y_minus_axis = "nul"
input_player2_r_x_plus = "nul"
input_player2_r_x_plus_axis = "nul"
input_player2_r_x_minus = "nul"
input_player2_r_x_minus_axis = "nul"
input_player2_r_y_plus = "nul"
input_player2_r_y_plus_axis = "nul"
input_player2_r_y_minus = "nul"
input_player2_r_y_minus_axis = "nul"
input_player2_turbo = "nul"
input_player2_turbo_btn = "nul"
input_player2_turbo_axis = "nul"
libretro_info_path = ""
cheat_database_path = ""
video_shader = ""
audio_device = ""
video_filter = ""
audio_dsp_plugin = ""
camera_device = ""
extraction_directory = ""
resampler_directory = ""
joypad_autoconfig_dir = ""
input_overlay = ""
video_font_path = ""
netplay_nickname = ""
input_joypad_driver = ""
input_keyboard_layout = ""

Ok, is it not your left-analog that you’re wanting to use? Anyway, setting analog dpad mode to “1” tries to use the left analog for the dpad functions, but you can set it to other things via RGUI. Just try playing with that setting because it does what I think you’re trying to achieve… Actually, I think you should map your buttons literally (i.e., dpad to dpad, analogs to analogs) and then enable analog dpad mode. It looks like right now you have digital dpad buttons mapped to analog axes.

Ok, maybe I’m making confusion. Could you show me which are the parameters to map on the analog joystick for dpad? I’m using a joystick like this:

http://www.ebay.com/itm/171282802158

It has an USB controller which will be recognized like DragonRise.

And it shoudl work on the game as well on the menu.

thanks!

Simon

Oh, ok. Hmm. I don’t have one of those, but I’m surprised that it’s using an axis value for the joystick directions. I would have expected it to be a digital value. So, when you go into the in-game RGUI menu and try to map buttons, will it allow you to map ‘up’ on the joystick as ‘up’ on the dpad? If so, that’s what you should do. I’m assuming you don’t want/need analog controls with something like that, since the stick uses digital switches for each direction.

In short, trying to map everything manually through the cfg is going to be much more difficult than just mapping via RGUI, if that’s an option.

As an aside, let me know how those buttons/stick treat you. I’ve seen them around but have been suspicious of knock-off sanwa parts since trying the stock Mad Catz SE hardware, which is terrible. I’d be very interested in a cheap, good-quality knockoff.

Wait. You mean from within “–menu” option? I’ve searched for the menu, but cannot find where to configure the joystick. I’ve used ‘retroarck-joyconfig’ cli.

I’ve not tested them very well, because I’m trying to bring correctly to work Retrarch first :wink: The exact model I’ve purchased is:

http://www.ebay.it/itm/201076612419

First impression is a good quality of cheap DIY Joystick. Nice leds when you press the buttons. Need to test it hard out! Time to start using Retroarch heavly :wink:

Simon

Yeah, you should be able to go into settings > input options and map buttons through the GUI.