Analog stick in N64

User avatar
kite
Posts: 1589
Joined: Thu May 12, 2016 4:30 am
Location: UK
Has thanked: 351 times
Been thanked: 2057 times
Contact:

Re: Analog stick in N64

Post by kite » Thu Jul 12, 2018 10:35 am

Can you show the output of:

cat "/opt/retropie/configs/all/retroarch-joypads/Arduino\ LLC\ Arduino\ Leonardo.cfg"

Code: Select all

input_device = "Arduino LLC Arduino Leonardo"
input_driver = "udev"
input_r_y_plus_btn = "15"
input_r_x_minus_btn = "16"
input_l_btn = "7"
input_load_state_btn = "7"
input_start_btn = "4"
input_exit_emulator_btn = "4"
input_r_y_minus_btn = "14"
input_down_btn = "h0down"
input_l_x_plus_axis = "+0"
input_r_btn = "8"
input_save_state_btn = "8"
input_right_btn = "h0right"
input_state_slot_increase_btn = "h0right"
input_select_btn = "5"
input_left_btn = "h0left"
input_state_slot_decrease_btn = "h0left"
input_l2_btn = "6"
input_l_y_minus_axis = "+1"
input_up_btn = "h0up"
input_a_btn = "0"
input_b_btn = "1"
input_reset_btn = "1"
input_enable_hotkey_btn = "5"
input_l_y_plus_axis = "-1"
input_r2_btn = "9"
input_x_btn = "3"
input_menu_toggle_btn = "3"
input_l_x_minus_axis = "-0"
input_y_btn = "2"
input_r_x_plus_btn = "17"

eyefire
Posts: 19
Joined: Mon Jun 18, 2018 2:41 pm
Has thanked: 2 times
Been thanked: 3 times

Re: Analog stick in N64

Post by eyefire » Fri Jul 13, 2018 1:12 am

here it is...
SpoilerShow

Code: Select all

input_device = "Arduino LLC Arduino Leonardo"
input_driver = "udev"
input_l_btn = "6"
input_load_state_btn = "6"
input_start_btn = "4"
input_exit_emulator_btn = "4"
input_down_btn = "h0down"
input_r_btn = "8"
input_save_state_btn = "8"
input_right_btn = "h0right"
input_state_slot_increase_btn = "h0right"
input_select_btn = "5"
input_left_btn = "h0left"
input_state_slot_decrease_btn = "h0left"
input_up_btn = "h0up"
input_a_btn = "0"
input_b_btn = "1"
input_reset_btn = "1"
input_enable_hotkey_btn = "5"
input_x_btn = "3"
input_menu_toggle_btn = "3"
input_y_btn = "2"

eyefire
Posts: 19
Joined: Mon Jun 18, 2018 2:41 pm
Has thanked: 2 times
Been thanked: 3 times

Re: Analog stick in N64

Post by eyefire » Fri Jul 13, 2018 1:20 am

I copied your configuration over and it started working with an inverted X control. I ran the python config script and inverted the x analog joystick 1 and now everything is working. Thank you so much for your help.

Any idea why it wasn't working in the first place?

eyefire
Posts: 19
Joined: Mon Jun 18, 2018 2:41 pm
Has thanked: 2 times
Been thanked: 3 times

Re: Analog stick in N64

Post by eyefire » Fri Jul 13, 2018 10:58 am

I am not sure if this is related or not, but I am also unable to get Reicast to recognize the analog stick. I go through the process of configuring the controls for reicast, but once gets to analog stick and asks me to hold the stick in the far left position it does not respond.

User avatar
kite
Posts: 1589
Joined: Thu May 12, 2016 4:30 am
Location: UK
Has thanked: 351 times
Been thanked: 2057 times
Contact:

Re: Analog stick in N64

Post by kite » Mon Jul 16, 2018 3:15 am

Late reply, cool your config doesn't have the joystick axis for some reason, can you walk me through how you are actually configuring it on the gamepad configuration screen thing? Because that is what makes that file and I'm suspecting the way you are doing it isn't right? Push the stick in the direction and release, rather than hold it there? Perhaps a vid of showing it may help..

Did you try using it WITHOUT doing that button config thing? I've seen that as well and you might have to craft if by hand, but I don't know enough about it.. that jstest app tells you which axis they appear as.. if you do get the config working please let me know! I managed to run something without doing anything other than the defaults and it worked fine.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest