• 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

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.
  • B
    batesman
    last edited by 17 Jan 2017, 12:20

    Let me know how it goes. I understand the need for Dragon's Lair. :)

    1 Reply Last reply Reply Quote 0
    • R
      Riverstorm @andrea_ita
      last edited by Riverstorm 17 Jan 2017, 18:13

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

      my file dapinput.ini in /opt/retropie/configs/daphne/

      #value found by vtest js1
      #button 1 - 10
      #button 2 - 11
      #button 3 - 12
      #button 4 - 13
      #select 19
      #start 18

      I mainly use a 360 controller but maybe something will help. I think the first two columns are SDL keyboard inputs. The 3rd column is joystick inputs from values using jstest /dev/input/js0. Use these values in the 3rd column.

      I am not completely sure but I think the required joystick for play is js0. It automatically maps the analog controls for up, down, left & right but you also have the option to change those settings to an actual joystick button.

      This part I never quite understood as it seems you can't map the analog sticks at all but only keyboard and joystick values (buttons only) in the dapinput.ini.

      You need to increment all values by 1 as 0 (zero) is a nul key value if you want to leave a button unassigned.

      This seems incorrect as you're using the same value for up & down (2). Also the same for left & right (1) but I never changed those values from default as the analog stick on a 360 controller worked out of the box fine. To reiterate I think the 3rd column value is for button only values from the joystick and not for analog ones.

      [KEYBOARD]
      KEY_UP = 273 114 2
      KEY_DOWN = 274 102 2
      KEY_LEFT = 276 100 1
      KEY_RIGHT = 275 103 1

      Action buttons 2 & 3 are mapped to the same value. KEY_BUTTON2 = 1 & KEY_BUTTON3 = 1 (3rd column). This could cause some issues.

      KEY_BUTTON2 = 308 115 1
      KEY_BUTTON3 = 32 113 1

      Coin button 1 is mapped to 2 which is the same as your up & down buttons.

      KEY_COIN1 = 53 0 2

      Look at the default keyboard controls here from the Wiki and use that as a guide to plan your joystick button layout. It has descriptions of each button used in the ini file.

      RetroPie Daphne Wiki

      1 Reply Last reply Reply Quote 0
      • A
        andrea_ita
        last edited by 19 Jan 2017, 23:02

        hello,
        I coming back for several test.

        -in these days a did a new image for rpi3.
        -reconfigure xin-mo for a better configurations

        remain to fix daphne...

        my test with jstest /dev/input/js1

        START – 8
        SELECT – 9
        BT 1 - 0
        BT 2 – 1
        BT 3 – 2
        BT 4 - 3

        ======

        my DAPINPUT.INI

        [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

        i test in several times... now i have a matter only with "buttons" for "action".. or "sword" for play dragon's lair..

        i noticed that if i change the KEY_QUIT... and set "1" corresponds correctly to button 1.. because, my button 1 value is "0"... so for daphne.. "+1" is "1"...
        but if i set KEY_BUTTON1 = 306 97 1
        not does not work.

        today i was at the home of italian record man for dragon's lair... and he tests it, with me... but without results... (this is not a joke... I really know him ;) )

        any help would be valued.
        thanks in advance!

        1 Reply Last reply Reply Quote 0
        • B
          batesman
          last edited by batesman 20 Jan 2017, 06:24

          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

          A 1 Reply Last reply 20 Jan 2017, 17:47 Reply Quote 0
          • A
            andrea_ita @batesman
            last edited by andrea_ita 20 Jan 2017, 17:47

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

            M 1 Reply Last reply 21 Jan 2017, 01:13 Reply Quote 0
            • B
              batesman
              last edited by 21 Jan 2017, 00:17

              I think this will do the trick.

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

              A 1 Reply Last reply 21 Jan 2017, 21:18 Reply Quote 0
              • M
                mediamogul Global Moderator @andrea_ita
                last edited by mediamogul 21 Jan 2017, 01:13

                @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
                • A
                  andrea_ita @batesman
                  last edited by 21 Jan 2017, 21:18

                  @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
                  • B
                    batesman
                    last edited by 23 Jan 2017, 07:00

                    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

                    A 1 Reply Last reply 23 Jan 2017, 17:15 Reply Quote 0
                    • A
                      andrea_ita @batesman
                      last edited by 23 Jan 2017, 17:15

                      @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
                      • A
                        andrea_ita
                        last edited by andrea_ita 23 Jan 2017, 17:18

                        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
                        • B
                          batesman
                          last edited by 24 Jan 2017, 04:06

                          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.

                          A 1 Reply Last reply 24 Jan 2017, 14:41 Reply Quote 0
                          • A
                            andrea_ita @batesman
                            last edited by 24 Jan 2017, 14:41

                            @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
                            20 out of 20
                            • First post
                              20/20
                              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