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

    key settings problem in DAPHNE with Xin-Mo

    Scheduled Pinned Locked Moved Help and Support
    daphnejoystickxin-mo
    20 Posts 5 Posters 6.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.
    • batesmanB
      batesman
      last edited by batesman

      First, you need to run your joystick test on js0, not js1, and use those values for the dapinput.ini file.

      Once you do, your dapinput.ini file should not have the same button value for multiple sections.

      Here is mine as an example and I had to edit it manually as well. Where I left a 0 value I did not assign a control to that action.

      KEY_UP = 273 114 1
      KEY_DOWN = 274 102 1
      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

      andrea_itaA 1 Reply Last reply Reply Quote 0
      • andrea_itaA
        andrea_ita @batesman
        last edited by andrea_ita

        @batesman said in key settings problem in DAPHNE with Xin-Mo:

        First, you need to run your joystick test on js0, not js1, and use those values for the dapinput.ini file.

        ok, i plug joystick in usb port 0
        but if i run jstest... in js0 always i have keyboard
        and in js1 is joystick
        all emulators are available, except the Daphne

        could you tell me how i can set js1 to js0 ?
        thanks in advance !

        mediamogulM 1 Reply Last reply Reply Quote 0
        • batesmanB
          batesman
          last edited by

          I think this will do the trick.

          https://github.com/meleu/RetroPie-joystick-selection

          andrea_itaA 1 Reply Last reply Reply Quote 0
          • mediamogulM
            mediamogul Global Moderator @andrea_ita
            last edited by mediamogul

            @andrea_ita said in key settings problem in DAPHNE with Xin-Mo:

            could you tell me how i can set js1 to js0 ?

            Daphne is very inflexible in how it assigns a joystick. It is possible to rearrange the jsX assignments, but unfortunately Daphne actually calls out to the first joystick event rather than js0. Also, the joystick event order is set at the system level and to my knowledge cannot be rearranged. If this is the only controller being plugged in and it's still not being read as the first joystick event, then there's really nothing to be done outside of key-mapping the controller so that Daphne reads it as standard keyboard input.

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

            1 Reply Last reply Reply Quote 0
            • andrea_itaA
              andrea_ita @batesman
              last edited by

              @batesman said in key settings problem in DAPHNE with Xin-Mo:

              I think this will do the trick.

              https://github.com/meleu/RetroPie-joystick-selection

              i just followed the procedure above.
              i used the new menu in emulationstation
              i set my joystick xin-mo like "unique" and joystick "0"

              i try to things...
              1- jstest... same address JS1... not changed.
              2- try to play... movement is perfect like before... the button 1,2,3... are unavailable like before.

              unique buttons configurable are
              -start / select/ button 4 (for quit)

              any solutions? i m a little disappointed... a lot of time spent.. many tests done... :( no results...

              you have did a great program retropie... unique... but i hope that someone fix joystick for all... (necessary)

              Regards

              1 Reply Last reply Reply Quote 0
              • batesmanB
                batesman
                last edited by

                Alright, dude...I'm not sure how much more I can help, but let's do one more thing.

                Show me the full output of your js test please. Give me all the directions and buttons in a layout similar to below.

                up - 0
                down - 1
                left - 2
                a or button 1 - 4
                b or button 2 - 5

                andrea_itaA 1 Reply Last reply Reply Quote 0
                • andrea_itaA
                  andrea_ita @batesman
                  last edited by

                  @batesman said in key settings problem in DAPHNE with Xin-Mo:

                  Alright, dude...I'm not sure how much more I can help, but let's do one more thing.

                  Show me the full output of your js test please. Give me all the directions and buttons in a layout similar to below.

                  up - 0
                  down - 1
                  left - 2
                  a or button 1 - 4
                  b or button 2 - 5

                  just attached
                  0_1485191725578_js1.jpg

                  1 Reply Last reply Reply Quote 0
                  • andrea_itaA
                    andrea_ita
                    last edited by andrea_ita

                    button 1 - 0
                    button 2 - 1
                    button 3 - 2
                    button 4 - 4
                    select 9
                    start 8

                    normally with the config below.....
                    only button 4 (quit) - select - start are available...

                    but if i simply try to change button 4 (quit)... for use it like "sword or action button"... (button 1) not works :(
                    it's very strange, because all the other emulators work well... snes, genesis, mame, all atari, amiga, c64, n64, psx, psp..

                    [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 1
                    KEY_BUTTON3 = 32 113 1
                    KEY_START1 = 49 0 9
                    KEY_START2 = 50 0 0
                    KEY_COIN1 = 53 0 10
                    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 4
                    END

                    1 Reply Last reply Reply Quote 0
                    • batesmanB
                      batesman
                      last edited by

                      Sorry if I was unclear. Can you send me ALL the jtest values for movements and buttons?

                      Your dapinput file looks wrong to me, but I will go through that once I have your list of input commands.

                      andrea_itaA 1 Reply Last reply Reply Quote 0
                      • andrea_itaA
                        andrea_ita @batesman
                        last edited by

                        @batesman said in key settings problem in DAPHNE with Xin-Mo:

                        Sorry if I was unclear. Can you send me ALL the jtest values for movements and buttons?

                        ok, how i can print the values ? ;)
                        there is method to print of the result in a file?

                        1 Reply Last reply Reply Quote 0
                        • First post
                          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.