Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GPIO difficulty with configuration
#1
I know almost nothing about linux, just the basics.

I have a double arcade controller (2 players, 6 buttons each + select, start) with GPIO, then going in to the retropie menu Enable GPIO, I configured the two and in the ES they work fine, but not in the emulators, the SELECT button does not work, the keys are not mapped correctly.
I have an OPI 2 Plus and I'm using ROPI 4.1.
Another detail, how can I customize the emulator buttons by emulator, access the retroarch menu by the SELECT + X shortcut?
Below is my files

/opt/retropie/configs/all/retroarch-joypads/TZGamesSP Controle #1.cfg
Code:
input_device = "TZGamesSP Controle #1"
input_driver = "udev"
input_l_btn = "5"
input_load_state_btn = "5"
input_start_btn = "8"
input_exit_emulator_btn = "8"
input_up_axis = "-1"
input_a_btn = "2"
input_b_btn = "1"
input_reset_btn = "1"
input_enable_hotkey_btn = "7"
input_down_axis = "+1"
input_r_btn = "6"
input_save_state_btn = "6"
input_right_axis = "+0"
input_state_slot_increase_axis = "+0"
input_x_btn = "3"
input_menu_toggle_btn = "3"
input_select_btn = "7"
input_y_btn = "4"
input_left_axis = "-0"
input_state_slot_decrease_axis = "-0"

/opt/retropie/configs/all/retroarch-joypads/TZGamesSP Controle #2.cfg
Code:
input_device = "TZGamesSP Controle #2"
input_driver = "udev"
input_l_btn = "5"
input_load_state_btn = "5"
input_start_btn = "8"
input_exit_emulator_btn = "8"
input_up_axis = "-1"
input_a_btn = "1"
input_b_btn = "2"
input_reset_btn = "2"
input_enable_hotkey_btn = "7"
input_down_axis = "+1"
input_r_btn = "6"
input_save_state_btn = "6"
input_right_axis = "+0"
input_state_slot_increase_axis = "+0"
input_x_btn = "3"
input_menu_toggle_btn = "3"
input_select_btn = "7"
input_y_btn = "4"
input_left_axis = "-0"
input_state_slot_decrease_axis = "-0"

/opt/retropie/configs/all/retroarch.cfg
Code:
menu_driver = "xmb"
menu_unified_controls = "true"
core_updater_buildbot_assets_url = "http://buildbot.libretro.com/assets/"
libretro_directory = "~/.config/retroarch/cores"
libretro_info_path = "~/.config/retroarch/cores"
content_database_path = "~/.config/retroarch/database/rdb"
cheat_database_path = "~/.config/retroarch/cheats"
content_history_path = "/opt/retropie/configs/all/content_history.lpl"
content_favorites_path = "/opt/retropie/configs/all/content_favorites.lpl"
content_music_history_path = "/opt/retropie/configs/all/content_music_history.lpl"
content_video_history_path = "/opt/retropie/configs/all/content_video_history.lpl"
content_image_history_path = "/opt/retropie/configs/all/content_image_history.lpl"
cursor_directory = "~/.config/retroarch/database/cursors"
screenshot_directory = "~/.config/retroarch/screenshots"
system_directory = "~/RetroPie/BIOS"
input_remapping_directory = "~/.config/retroarch/config/remaps"
video_shader_dir = "~/.config/retroarch/shaders"
video_filter_dir = "default"
core_assets_directory = "~/.config/retroarch/downloads"
assets_directory = "~/.config/retroarch/assets"
dynamic_wallpapers_directory = "default"
thumbnails_directory = "~/.config/retroarch/thumbnails"
playlist_directory = "~/.config/retroarch/playlists"
joypad_autoconfig_dir = "~/.config/retroarch/autoconfig"
audio_filter_dir = "default"
savefile_directory = "default"
savestate_directory = "default"
rgui_browser_directory = "~/RetroPie/roms"
rgui_config_directory = "~/.config/retroarch/config"
overlay_directory = "~/.config/retroarch/overlay"
screenshot_directory = "~/.config/retroarch/screenshots"
video_driver = "gl"
record_driver = "null"
camera_driver = "null"
wifi_driver = "null"
location_driver = "null"
audio_driver = "alsa"
audio_resampler = "sinc"
input_driver = "udev"
input_joypad_driver = "udev"
video_aspect_ratio = "0.100000"
video_scale = "3.000000"
video_refresh_rate = "60.000000"
audio_rate_control_delta = "0.005000"
audio_max_timing_skew = "0.050000"
audio_volume = "0.000000"
audio_mixer_volume = "0.000000"
input_overlay_opacity = "0.700000"
input_overlay_scale = "1.000000"
menu_wallpaper_opacity = "0.300000"
menu_framebuffer_opacity = "0.900000"
menu_footer_opacity = "1.000000"
menu_header_opacity = "1.000000"
video_message_pos_x = "0.050000"
video_message_pos_y = "0.050000"
video_font_size = "32.000000"
fastforward_ratio = "0.000000"
slowmotion_ratio = "3.000000"
input_axis_threshold = "0.500000"
state_slot = "0"
netplay_check_frames = "30"
input_bind_timeout = "5"
input_turbo_period = "6"
input_duty_cycle = "3"
input_max_users = "5"
input_menu_toggle_gamepad_combo = "0"
audio_latency = "72"
audio_block_frames = "0"
rewind_granularity = "1"
autosave_interval = "0"
libretro_log_level = "1"
keyboard_gamepad_mapping_type = "1"
input_poll_type_behavior = "2"
video_monitor_index = "0"
video_fullscreen_x = "0"
video_fullscreen_y = "0"
video_window_x = "0"
video_window_y = "0"
network_cmd_port = "55355"
network_remote_base_port = "55400"
dpi_override_value = "200"
menu_thumbnails = "3"
xmb_alpha_factor = "75"
xmb_scale_factor = "100"
xmb_theme = "0"
xmb_menu_color_theme = "8"
materialui_menu_color_theme = "0"
menu_shader_pipeline = "0"
audio_out_rate = "44100"
custom_viewport_width = "960"
custom_viewport_height = "720"
custom_viewport_x = "160"
custom_viewport_y = "0"
content_history_size = "100"
video_hard_sync_frames = "3"
video_frame_delay = "0"
video_max_swapchain_images = "3"
video_swap_interval = "1"
video_rotation = "0"
aspect_ratio_index = "21"
netplay_ip_port = "55435"
netplay_input_latency_frames_min = "0"
netplay_input_latency_frames_range = "0"
user_language = "0"
bundle_assets_extract_version_current = "0"
bundle_assets_extract_last_version = "0"
input_overlay_show_physical_inputs_port = "0"
input_device_p1 = "0"
input_player1_joypad_index = "0"
input_libretro_device_p1 = "1"
input_player1_analog_dpad_mode = "0"
input_player1_mouse_index = "0"
input_device_p2 = "0"
input_player2_joypad_index = "1"
input_libretro_device_p2 = "1"
input_player2_analog_dpad_mode = "0"
input_player2_mouse_index = "0"
input_device_p3 = "0"
input_player3_joypad_index = "2"
input_libretro_device_p3 = "1"
input_player3_analog_dpad_mode = "0"
input_player3_mouse_index = "0"
input_device_p4 = "0"
input_player4_joypad_index = "3"
input_libretro_device_p4 = "1"
input_player4_analog_dpad_mode = "0"
input_player4_mouse_index = "0"
input_device_p5 = "0"
input_player5_joypad_index = "4"
input_libretro_device_p5 = "1"
input_player5_analog_dpad_mode = "0"
input_player5_mouse_index = "0"
input_device_p6 = "0"
input_player6_joypad_index = "5"
input_libretro_device_p6 = "1"
input_player6_analog_dpad_mode = "0"
input_player6_mouse_index = "0"
input_device_p7 = "0"
input_player7_joypad_index = "6"
input_libretro_device_p7 = "1"
input_player7_analog_dpad_mode = "0"
input_player7_mouse_index = "0"
input_device_p8 = "0"
input_player8_joypad_index = "7"
input_libretro_device_p8 = "1"
input_player8_analog_dpad_mode = "0"
input_player8_mouse_index = "0"
input_device_p9 = "0"
input_player9_joypad_index = "8"
input_libretro_device_p9 = "1"
input_player9_analog_dpad_mode = "0"
input_player9_mouse_index = "0"
input_device_p10 = "0"
input_player10_joypad_index = "9"
input_libretro_device_p10 = "1"
input_player10_analog_dpad_mode = "0"
input_player10_mouse_index = "0"
input_device_p11 = "0"
input_player11_joypad_index = "10"
input_libretro_device_p11 = "1"
input_player11_analog_dpad_mode = "0"
input_player11_mouse_index = "0"
input_device_p12 = "0"
input_player12_joypad_index = "11"
input_libretro_device_p12 = "1"
input_player12_analog_dpad_mode = "0"
input_player12_mouse_index = "0"
input_device_p13 = "0"
input_player13_joypad_index = "12"
input_libretro_device_p13 = "1"
input_player13_analog_dpad_mode = "0"
input_player13_mouse_index = "0"
input_device_p14 = "0"
input_player14_joypad_index = "13"
input_libretro_device_p14 = "1"
input_player14_analog_dpad_mode = "0"
input_player14_mouse_index = "0"
input_device_p15 = "0"
input_player15_joypad_index = "14"
input_libretro_device_p15 = "1"
input_player15_analog_dpad_mode = "0"
input_player15_mouse_index = "0"
input_device_p16 = "0"
input_player16_joypad_index = "15"
input_libretro_device_p16 = "1"
input_player16_analog_dpad_mode = "0"
input_player16_mouse_index = "0"
ui_companion_start_on_boot = "true"
ui_companion_enable = "false"
video_gpu_record = "false"
input_remap_binds_enable = "true"
all_users_control_menu = "false"
menu_swap_ok_cancel_buttons = "false"
netplay_public_announce = "true"
netplay_start_as_spectator = "false"
netplay_allow_slaves = "true"
netplay_require_slaves = "false"
netplay_stateless_mode = "false"
netplay_client_swap_input = "true"
netplay_use_mitm_server = "false"
input_descriptor_label_show = "true"
input_descriptor_hide_unbound = "false"
load_dummy_on_core_shutdown = "true"
check_firmware_before_loading = "false"
builtin_mediaplayer_enable = "false"
builtin_imageviewer_enable = "true"
fps_show = "false"
ui_menubar_enable = "true"
suspend_screensaver_enable = "true"
rewind_enable = "false"
audio_sync = "true"
video_shader_enable = "false"
video_aspect_ratio_auto = "false"
video_allow_rotate = "true"
video_windowed_fullscreen = "true"
video_crop_overscan = "true"
video_scale_integer = "false"
video_smooth = "false"
video_force_aspect = "true"
video_threaded = "false"
video_shared_context = "false"
auto_screenshot_filename = "true"
video_force_srgb_disable = "false"
video_fullscreen = "false"
bundle_assets_extract_enable = "false"
video_vsync = "false"
video_hard_sync = "true"
video_black_frame_insertion = "false"
video_disable_composition = "false"
pause_nonactive = "true"
video_gpu_screenshot = "true"
video_post_filter_record = "false"
keyboard_gamepad_enable = "true"
core_set_supports_no_game_enable = "true"
audio_enable = "true"
audio_mute_enable = "false"
audio_mixer_mute_enable = "false"
location_allow = "false"
video_font_enable = "true"
core_updater_auto_extract_archive = "true"
camera_allow = "false"
threaded_data_runloop_enable = "true"
menu_throttle_framerate = "true"
menu_linear_filter = "true"
menu_horizontal_animation = "true"
dpi_override_enable = "true"
menu_pause_libretro = "true"
menu_mouse_enable = "true"
menu_pointer_enable = "false"
menu_timedate_enable = "true"
menu_battery_level_enable = "true"
menu_core_enable = "true"
menu_dynamic_wallpaper_enable = "true"
materialui_icons_enable = "true"
xmb_shadows_enable = "true"
xmb_show_settings = "true"
xmb_show_favorites = "true"
xmb_show_images = "true"
xmb_show_music = "true"
menu_show_online_updater = "true"
menu_show_core_updater = "true"
xmb_show_netplay = "true"
xmb_show_history = "true"
xmb_show_add = "true"
filter_by_current_core = "false"
rgui_show_start_screen = "false"
menu_navigation_wraparound_enable = "true"
menu_navigation_browser_filter_supported_extensions_enable = "false"
menu_show_advanced_settings = "true"
cheevos_enable = "true"
cheevos_test_unofficial = "false"
cheevos_hardcore_mode_enable = "false"
cheevos_verbose_enable = "true"
input_overlay_enable = "true"
input_overlay_enable_autopreferred = "true"
input_overlay_show_physical_inputs = "false"
input_overlay_hide_in_menu = "true"
network_cmd_enable = "false"
stdin_cmd_enable = "false"
network_remote_enable = "false"
netplay_nat_traversal = "true"
block_sram_overwrite = "false"
savestate_auto_index = "false"
savestate_auto_save = "false"
savestate_auto_load = "false"
savestate_thumbnail_enable = "false"
history_list_enable = "false"
playlist_entry_remove = "true"
game_specific_options = "true"
auto_overrides_enable = "true"
auto_remaps_enable = "true"
auto_shaders_enable = "true"
sort_savefiles_enable = "false"
sort_savestates_enable = "false"
config_save_on_exit = "false"
show_hidden_files = "false"
input_autodetect_enable = "true"
audio_rate_control = "true"
savestates_in_content_dir = "false"
savefiles_in_content_dir = "false"
systemfiles_in_content_dir = "false"
screenshots_in_content_dir = "false"
custom_bgm_enable = "false"
network_remote_enable_user_p1 = "false"
network_remote_enable_user_p2 = "false"
network_remote_enable_user_p3 = "false"
network_remote_enable_user_p4 = "false"
network_remote_enable_user_p5 = "false"
network_remote_enable_user_p6 = "false"
network_remote_enable_user_p7 = "false"
network_remote_enable_user_p8 = "false"
network_remote_enable_user_p9 = "false"
network_remote_enable_user_p10 = "false"
network_remote_enable_user_p11 = "false"
network_remote_enable_user_p12 = "false"
network_remote_enable_user_p13 = "false"
network_remote_enable_user_p14 = "false"
network_remote_enable_user_p15 = "false"
network_remote_enable_user_p16 = "false"
log_verbosity = "true"
perfcnt_enable = "false"
video_message_color = "ffff00"
menu_entry_normal_color = "ffffffff"
menu_entry_hover_color = "ff64ff64"
menu_title_color = "ff64ff64"
gamma_correction = "false"
flicker_filter_enable = "false"
soft_filter_enable = "false"
soft_filter_index = "0"
current_resolution_id = "0"
flicker_filter_index = "0"
menu_wallpaper = "/home/pi/RetrOrangePi/splash.png"
cheevos_username = ""
cheevos_password = ""
xmb_font = ""
netplay_nickname = ""
video_filter = ""
audio_dsp_plugin = ""
core_updater_buildbot_url = ""
netplay_ip_address = ""
netplay_password = ""
netplay_spectate_password = ""
core_options_path = ""
video_shader = ""
video_font_path = ""
content_history_dir = ""
cache_directory = ""
resampler_directory = ""
recording_output_directory = ""
recording_config_directory = ""
xmb_font = ""
audio_device = ""
camera_device = ""
video_context_driver = ""
input_keyboard_layout = ""
bundle_assets_src_path = ""
bundle_assets_dst_path = ""
bundle_assets_dst_path_subdir = ""

Thanks.
Reply
#2
maybe this will help
http://orangepi.club/showthread.php?tid=...43#pid6943
Reply
#3
(03-28-2019, 11:52 PM)alexkidd Wrote: maybe this will help
http://orangepi.club/showthread.php?tid=...43#pid6943

Thank you for your help,
But what I do in this line:

input_b_btn = "1"

Replace 1 by 0?
Reply
#4
yes, all that ends with 'btn' , decrease one number
Reply
#5
(04-12-2019, 07:40 PM)alexkidd Wrote: yes, all that ends with 'btn' , decrease one number

I did exactly as you suggested and it is working now. Sorry for the delay, and thank you very much.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  GPIO - How to exit? giujb 0 161 04-02-2019, 02:29 AM
Last Post: giujb
  GPIO... indevor 19 9,259 03-14-2019, 11:06 PM
Last Post: indevor
  GPIO slow init on startup aiiaiiiyo 10 1,624 12-05-2018, 05:11 PM
Last Post: aiiaiiiyo
  RetrOrangePi 4.1 - Orange Pi Zero GPIO - Getting GPIO to work bharathram21391 15 5,359 05-15-2018, 04:58 PM
Last Post: alexkidd
  GPIO (one more time) znoxx 1 1,076 05-13-2018, 11:39 AM
Last Post: alexkidd
  GPIO config mauricio-ramos 2 1,563 02-26-2018, 02:34 AM
Last Post: canadien
  Enable GPIO - Failed to fetch Padova 7 3,352 02-15-2018, 10:22 PM
Last Post: alexkidd
Question NEO GEO control configuration by modifying other systems IABO 1 1,084 01-14-2018, 07:16 PM
Last Post: YiorgosH
  Per-system configuration YiorgosH 4 2,249 01-06-2018, 11:08 PM
Last Post: alexkidd
  Reset configuration pikaia 1 1,280 12-10-2017, 02:16 PM
Last Post: alexkidd

Forum Jump:


Users browsing this thread: 1 Guest(s)