Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GPIO...
#1
I made a gpio-gamepad and it works fine in ES I configured it in start-conf.input, everything works fine ... but only in ES;
- if I go into the genesis (retroarch) with the included usb keyboard - the gamepad does not work. Turn off the keyboard (the game is on) - does not work. I go to ES - I turn off the keyboard - I go into the game - the gamepad works.
- an incomprehensible config of keys - in ES - my buttons have one code, in retroarch - completely different, but arrows (d-pad up, down etc.) - work, ie only buttons a, b, z, y do not match with settings in the ES.
for example in ES - button A has a code button 5, in retroarchy it can be - code 7 and the button Y will be assigned.
- How to completely turn off the keyboard in retroarch? I'm building a portable console.
in retroarch tuning I left only 1 gamepad but this does not help.

my buttons in the ES config:
start - button 1
select - ..2
a - 8
b - 4
x - 3
y - 7
the arrows coincide
-----
if you configure the joystick in retroarch
start - 0
select -1
a - 7
b - 3
x-4
y - 6
---
the autoconfiguration does not correctly write the button code from the gpio gamepad
if you configure the gamepad in retroarch, then the settings do not save
failde save / opt / config / all / retro ....
Reply
#2
we dont have gpio controllers to test, all we can is suggest a few things:

1. downgrade retroarch to previous version 1.6.7: "wget http://www.retrorangepi.org/retroarch && sudo mv retroarch /opt/retropie/emulators/retroarch/bin/" - seems to have helped a few users
2. change input_driver and/or input_joypad_driver to sdl2 in /opt/retropie/configs/all/retroarch.cfg
3. clear ES input configuration (run "sudo ~/RetroPie-Setup/retropie_setup.sh" then Configuration - emulationstation - clear input)
4. return to ES by pressing Ctrl+D or logout
5. remap your controllers again
6. if binds are still incorrect, you canedit keymaps manually in /opt/retropie/configs/all/retroarch-joypads/ so retroarch reads the correct info
Reply
#3
This is due to the blocked retroarch.cfg, I reassigned the buttons in the retroarch menu while in the game, was saved under another config cut out this part ... and saved this part in the retroarch config

input_player1_b = "x"
input_player1_b_btn = "3"
input_player1_b_axis = "nul"
input_player1_y = "s"
input_player1_y_btn = "2"
input_player1_y_axis = "nul"
input_player1_select = "space"
input_player1_select_btn = "1"
input_player1_select_axis = "nul"
input_player1_start = "enter"
input_player1_start_btn = "0"
input_player1_start_axis = "nul"
input_player1_up = "up"
input_player1_up_btn = "nul"
input_player1_up_axis = "-0"
input_player1_down = "down"
input_player1_down_btn = "nul"
input_player1_down_axis = "-1"
input_player1_left = "left"
input_player1_left_btn = "nul"
input_player1_left_axis = "+1"
input_player1_right = "right"
input_player1_right_btn = "nul"
input_player1_right_axis = "+0"
input_player1_a = "z"
input_player1_a_btn = "7"
input_player1_a_axis = "nul"
input_player1_x = "a"
input_player1_x_btn = "6"
input_player1_x_axis = "nul"
input_player1_l = "q"
input_player1_l_btn = "4"
input_player1_l_axis = "nul"
input_player1_r = "w"
input_player1_r_btn = "nul"
input_player1_r_axis = "nul"
input_player1_l2 = "e"
input_player1_l2_btn = "nul"
input_player1_l2_axis = "nul"
input_player1_r2 = "r"
input_player1_r2_btn = "nul"
input_player1_r2_axis = "nul"
input_player1_l3 = "t"
input_player1_l3_btn = "nul"
input_player1_l3_axis = "nul"
input_player1_r3 = "y"
input_player1_r3_btn = "nul"
input_player1_r3_axis = "nul"
input_player1_l_x_plus = "nul"
input_player1_l_x_plus_btn = "nul"
input_player1_l_x_plus_axis = "nul"
input_player1_l_x_minus = "nul"
input_player1_l_x_minus_btn = "nul"
input_player1_l_x_minus_axis = "nul"
input_player1_l_y_plus = "nul"
input_player1_l_y_plus_btn = "nul"
input_player1_l_y_plus_axis = "nul"
input_player1_l_y_minus = "nul"
input_player1_l_y_minus_btn = "nul"
input_player1_l_y_minus_axis = "nul"
input_player1_r_x_plus = "nul"
input_player1_r_x_plus_btn = "nul"
input_player1_r_x_plus_axis = "nul"
input_player1_r_x_minus = "nul"
input_player1_r_x_minus_btn = "nul"
input_player1_r_x_minus_axis = "nul"
input_player1_r_y_plus = "nul"
input_player1_r_y_plus_btn = "nul"
input_player1_r_y_plus_axis = "nul"
input_player1_r_y_minus = "nul"
input_player1_r_y_minus_btn = "nul"
input_player1_r_y_minus_axis = "nul"
input_player1_turbo = "nul"
input_player1_turbo_btn = "nul"
input_player1_turbo_axis = "nul"
Reply
#4
Would you give an original retroarch.cfg?
Reply
#5
http://www.retrorangepi.org/retroarch.cfg
Reply
#6
ok, thank you, all work
Reply
#7
Can you describe your steps? So it can help other people.
Reply
#8
Yes, please do :-)
Reply
#9
Oh sure. What can interest them? Making and configuring the gpio gamepad ?. Or just setting it up? If you made it and know for sure that it works (by the way the script on the python is written for "pullup" buttons). By the way, you can check it quite simply. About this later.
Reply
#10
In my case I am using db9 to gpio to connect atari/commodore 64 joystick. Only half of the axes are mapping and I wonder how to get the real value to edit the config file properly.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  RetrOrangePi 4.1 - Orange Pi Zero GPIO - Getting GPIO to work bharathram21391 15 1,467 05-15-2018, 04:58 PM
Last Post: alexkidd
  GPIO (one more time) znoxx 1 329 05-13-2018, 11:39 AM
Last Post: alexkidd
  GPIO config mauricio-ramos 2 660 02-26-2018, 02:34 AM
Last Post: canadien
  Enable GPIO - Failed to fetch Padova 7 1,402 02-15-2018, 10:22 PM
Last Post: alexkidd

Forum Jump:


Users browsing this thread: 1 Guest(s)