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

    Create lr-mame2003 button mapping with jstest values

    Scheduled Pinned Locked Moved Help and Support
    dragonrise inccontrol configscontrol mapping
    2 Posts 1 Posters 437 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.
    • N
      noBios
      last edited by

      The jstest values correspond in a sensible way to what is printed on the PCB of the device

      jstest --normal /dev/input/js0
      Driver version is 2.1.0.
      Joystick (DragonRise Inc.   Generic   USB  Joystick  ) has 7 axes (X, Y, Z, Rx, Rz, Hat0X, Hat0Y)
      and 12 buttons (Trigger, ThumbBtn, ThumbBtn2, TopBtn, TopBtn2, PinkieBtn, BaseBtn, BaseBtn2, BaseBtn3, BaseBtn4, BaseBtn5, BaseBtn6).
      Testing ... (interrupt to exit)
      Axes:  0:-32767  1:     0  2:     0  3:-32767  4:-32767  5:     0  6:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:off  6:off  7:off  8:off  9:off 10:off 11:off 
      
      

      iE I press what is supposed to be Button 0 and = shows as on while I hold it etc.

      I could so far not make any sense of evtests output as that shows for starters way more events then my dragonrise board has inputs and no clear indication which would be "analog" labeled.

      So I would prefer to set up a config file matching the jstest values. But the examples and docs only show the 8bitdo(?) layout. How does that work? Is there a tool that gives me those values from jstest outputs? A translation table?

      example:
      /opt/retropie/configs/psx/retroarch.cfg

      input_player1_a = "x"
      input_player1_a_axis = "nul"
      input_player1_a_btn = "nul"
      input_player1_a_mbtn = "nul"
      input_player1_analog_dpad_mode = "0"
      input_player1_b = "z"
      input_player1_b_axis = "nul"
      input_player1_b_btn = "nul"
      input_player1_b_mbtn = "nul"
      input_player1_down = "down"
      input_player1_down_axis = "nul"
      input_player1_down_btn = "nul"
      input_player1_down_mbtn = "nul"
      input_player1_gun_aux_a = "nul"
      
      

      I only have Button/Axes numbers, so no "down", "x", "b" or "z"

      N 1 Reply Last reply Reply Quote 0
      • N
        noBios @noBios
        last edited by noBios

        While researching I stumbled over these lines in the Skeleton config:

        # Input device buttons.
        # Figure these out by using RetroArch-Phoenix or retroarch-joyconfig.
        # You can use joypad hats with hnxx, where n is the hat, and xx is a string representing direction.
        # E.g. "h0up"
        

        But where do I find these 2?
        Both just returned me a command not found error.

        RetroArch-Phoenix and retroarch-joyconfig

        Also I don't have enough buttons to go through the auto config tool, so that simply is not an option. At least it seems so since I could not find a way to skip buttons or end it before going through all of it.

        Tried the obvious things like using a keyboard:
        press esc
        press tab (to select the exit button)
        press arrow keys (to select exit button)
        press enter, well just for good measure at this point

        Logging into ssh to check if it maybe already saves progress mid way through:

        ls /opt/retropie/configs/all/retroarch-joypads
        Microsoft X-Box 360 pad.cfg  Microsoft X-Box 360 pad.cfg.bak
        

        Well, that seems like a no, so I can't just shutdown now and just fix up the file manually later with the intel obtained from the partially configured one.

        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.