Daphne dapinput.ini and 8Bitdo NES30 gamepad
-
Hi all,
I'm trying to set up the dapinput.ini to work with my gamepad, and I've been fishing around various sites, including here, but I can't quite seem to get the correct information. I've tried copy/pasting the code from the 8BitdoNES30GamePad.cfg and adding +1 to each of the values. This did nothing.
Can someone explain to me, like I'm 5, how to get my 8Bitdo NES30 controls into the dapinput.ini, and have it actually work? Or better yet, post their dapinput.ini?
Thanx.
-
Post the contents of your
dapinput.ini
and we'll have a look. Make sure to surround the text of the file by three backticks```
on either side when posting.Example:
```
This is the text content from the config file.
```
-
Thanks for the reply. Here it is, with each number in the gamepad increased by a factor of 1:
# Daphne cutom keyboard and joystick mapping # # Each input is mapped to 2 keyboard keys and one joystick button. # A joystick's first analog stick is also automatically mapped. # # The first two numbers are SDL keyboard codes (or 0 for "none") # Find keyboard codes here: # http://www.daphne-emu.com/mediawiki/index.php/KeyList # # The third number is the joystick button code (or 0 for "none") # Since 0 is reserved for special meaning, joystick button 0 is identified # as 1 here. Button 1 is identified as 2, and so on. # # Find the button you want to map by running: # jstest /dev/input/js0 [KEYBOARD] KEY_UP = 273 114 2 KEY_DOWN = 274 102 2 KEY_LEFT = 276 100 1 KEY_RIGHT = 275 103 1 KEY_BUTTON1 = 306 97 1 KEY_BUTTON2 = 308 115 2 KEY_BUTTON3 = 32 113 4 KEY_START1 = 49 0 12 KEY_START2 = 50 0 0 KEY_COIN1 = 53 0 5 KEY_COIN2 = 54 0 0 KEY_SKILL1 = 304 119 0 KEY_SKILL2 = 122 105 0 KEY_SKILL3 = 120 107 0 KEY_SERVICE = 57 0 0 KEY_TEST = 283 0 0 KEY_RESET = 284 0 0 KEY_SCREENSHOT = 293 0 0 KEY_QUIT = 27 113 11 END input_device = "8Bitdo NES30 GamePad" input_driver = "udev" input_l_btn = "7" input_load_state_btn = "7" input_start_btn = "11" input_exit_emulator_btn = "12" input_up_axis = "-3" input_a_btn = "1" input_b_btn = "2" input_reset_btn = "2" input_down_axis = "+2" input_r_btn = "8" input_save_state_btn = "8" input_right_axis = "+1" input_state_slot_increase_axis = "+1" input_x_btn = "4" input_menu_toggle_btn = "4" input_select_btn = "11" input_enable_hotkey_btn = "11" input_y_btn = "5" input_left_axis = "-1" input_state_slot_decrease_axis = "-1"
-
You may have unintentionally put both your
dapinput.ini
and your8BitdoNES30GamePad.cfg
into the same code block for the purpose of this posting, but if all this information is in fact in thedapinput.ini
file, then everything belowEND
needs to be deleted. Aside from that, I notice that you haveinput_a_btn = "1"
, which would mean that it's actually button0
, but you don't seem to have a button0
in your8BitdoNES30GamePad.cfg
. Also, your8BitdoNES30GamePad.cfg
says that both start and select are mapped to button11
, but that can't be true. So, assuming that select and start are actually11
an12
respectively, then yourdapinput.ini
should be closer to something like this:# Daphne cutom keyboard and joystick mapping # # Each input is mapped to 2 keyboard keys and one joystick button. # A joystick's first analog stick is also automatically mapped. # # The first two numbers are SDL keyboard codes (or 0 for "none") # Find keyboard codes here: # http://www.daphne-emu.com/mediawiki/index.php/KeyList # # The third number is the joystick button code (or 0 for "none") # Since 0 is reserved for special meaning, joystick button 0 is identified # as 1 here. Button 1 is identified as 2, and so on. # # Find the button you want to map by running: # jstest /dev/input/js0 [KEYBOARD] KEY_UP = 273 114 0 KEY_DOWN = 274 102 0 KEY_LEFT = 276 100 0 KEY_RIGHT = 275 103 0 KEY_BUTTON1 = 306 97 2 KEY_BUTTON2 = 308 115 3 KEY_BUTTON3 = 32 113 5 KEY_START1 = 49 0 13 KEY_START2 = 50 0 0 KEY_COIN1 = 53 0 12 KEY_COIN2 = 54 0 0 KEY_SKILL1 = 304 119 0 KEY_SKILL2 = 122 105 0 KEY_SKILL3 = 120 107 0 KEY_SERVICE = 57 0 0 KEY_TEST = 283 0 0 KEY_RESET = 284 0 0 KEY_SCREENSHOT = 293 0 0 KEY_QUIT = 27 113 8 END
-
@mediamogul Well that right there is my problem. Instructions weren't very obvious. I literally copied and pasted my 8BitdoNES30GamePad.cfg into dapinput.ini and then changed those numbers up by adding one. That's what I posted here. I didn;t realize that the keyboard info had to change, and that's all that is needed.
I'll try what you posted when I get home tomorrow. But here is my actual code for the 8BitdoNES30GamePad.cfg, Unedited.
input_device = "8Bitdo NES30 GamePad" input_driver = "udev" input_l_btn = "6" input_load_state_btn = "6" input_start_btn = "11" input_exit_emulator_btn = "11" input_up_axis = "-1" input_a_btn = "0" input_b_btn = "1" input_reset_btn = "1" input_down_axis = "+1" input_r_btn = "7" input_save_state_btn = "7" input_right_axis = "+0" input_state_slot_increase_axis = "+0" input_x_btn = "3" input_menu_toggle_btn = "3" input_select_btn = "10" input_enable_hotkey_btn = "10" input_y_btn = "4" input_left_axis = "-0" input_state_slot_decrease_axis = "-0"
-
@Jerry-Curl said in Daphne dapinput.ini and 8Bitdo NES30 gamepad:
here is my actual code for the 8BitdoNES30GamePad.cfg, Unedited.
In that case, this would be more appropriate:
# Daphne cutom keyboard and joystick mapping # # Each input is mapped to 2 keyboard keys and one joystick button. # A joystick's first analog stick is also automatically mapped. # # The first two numbers are SDL keyboard codes (or 0 for "none") # Find keyboard codes here: # http://www.daphne-emu.com/mediawiki/index.php/KeyList # # The third number is the joystick button code (or 0 for "none") # Since 0 is reserved for special meaning, joystick button 0 is identified # as 1 here. Button 1 is identified as 2, and so on. # # Find the button you want to map by running: # jstest /dev/input/js0 [KEYBOARD] KEY_UP = 273 114 0 KEY_DOWN = 274 102 0 KEY_LEFT = 276 100 0 KEY_RIGHT = 275 103 0 KEY_BUTTON1 = 306 97 1 KEY_BUTTON2 = 308 115 2 KEY_BUTTON3 = 32 113 4 KEY_START1 = 49 0 12 KEY_START2 = 50 0 0 KEY_COIN1 = 53 0 11 KEY_COIN2 = 54 0 0 KEY_SKILL1 = 304 119 0 KEY_SKILL2 = 122 105 0 KEY_SKILL3 = 120 107 0 KEY_SERVICE = 57 0 0 KEY_TEST = 283 0 0 KEY_RESET = 284 0 0 KEY_SCREENSHOT = 293 0 0 KEY_QUIT = 27 113 7 END
Two liberties I took were to map the select button to P1 coin and the left shoulder button to quit. This puts it somewhat in line with the other arcade emulators.
-
@mediamogul I'll try that tonight when I get off work. Thanks for your help.
-
@mediamogul This appears to be working, as far as I can tell. I need to make a little diagram for what the buttons do so I can keep it straight. Thank you so much for the help.
-
Not a problem. Glad it's working.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.