• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
RetroPie forum home
  • Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

Daphne dapinput.ini and 8Bitdo NES30 gamepad

Scheduled Pinned Locked Moved Help and Support
daphne8bitdones30
9 Posts 2 Posters 2.5k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J
    Jerry Curl
    last edited by Jerry Curl 27 Jan 2017, 00:20

    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.

    M 1 Reply Last reply 27 Jan 2017, 00:35 Reply Quote 0
    • M
      mediamogul Global Moderator @Jerry Curl
      last edited by 27 Jan 2017, 00:35

      @Jerry-Curl

      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.
      ```

      RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

      1 Reply Last reply Reply Quote 0
      • J
        Jerry Curl
        last edited by 27 Jan 2017, 01:12

        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"
        
        
        M 1 Reply Last reply 27 Jan 2017, 02:13 Reply Quote 0
        • M
          mediamogul Global Moderator @Jerry Curl
          last edited by mediamogul 27 Jan 2017, 02:13

          @Jerry-Curl

          You may have unintentionally put both your dapinput.ini and your 8BitdoNES30GamePad.cfg into the same code block for the purpose of this posting, but if all this information is in fact in the dapinput.ini file, then everything below END needs to be deleted. Aside from that, I notice that you have input_a_btn = "1", which would mean that it's actually button 0, but you don't seem to have a button 0 in your 8BitdoNES30GamePad.cfg. Also, your 8BitdoNES30GamePad.cfg says that both start and select are mapped to button 11, but that can't be true. So, assuming that select and start are actually 11 an 12 respectively, then your dapinput.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
          

          RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

          1 Reply Last reply Reply Quote 0
          • J
            Jerry Curl
            last edited by 27 Jan 2017, 02:37

            @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"
            
            M 1 Reply Last reply 27 Jan 2017, 02:45 Reply Quote 0
            • M
              mediamogul Global Moderator @Jerry Curl
              last edited by mediamogul 27 Jan 2017, 02:45

              @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.

              RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

              J 2 Replies Last reply 27 Jan 2017, 11:27 Reply Quote 0
              • J
                Jerry Curl @mediamogul
                last edited by Jerry Curl 27 Jan 2017, 11:27

                @mediamogul I'll try that tonight when I get off work. Thanks for your help.

                1 Reply Last reply Reply Quote 0
                • J
                  Jerry Curl @mediamogul
                  last edited by 27 Jan 2017, 23:34

                  @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.

                  M 1 Reply Last reply 27 Jan 2017, 23:43 Reply Quote 0
                  • M
                    mediamogul Global Moderator @Jerry Curl
                    last edited by 27 Jan 2017, 23:43

                    Not a problem. Glad it's working.

                    RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                    1 Reply Last reply Reply Quote 0
                    9 out of 9
                    • First post
                      9/9
                      Last post

                    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.

                      This community forum collects and processes your personal information.
                      consent.not_received