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

    jstest question

    Scheduled Pinned Locked Moved Help and Support
    5 Posts 3 Posters 2.7k 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.
    • whsiungW
      whsiung
      last edited by

      Hi,

      I'm a newbie to Raspbian (oh you can count Linux as well)/Raspberry/Retropie. Been watching Raspberry since one or nearly 2 years ago, until Pie 3 been released a while back, that was the time I jumped into the ship :)

      I'm prototyping a board, which I intend to build an arcade controller. It seems working well in its prototype. Have been testing it with both Windows 7 and Raspbian Jessie. Somehow the 'jstest' is puzzling me. When I used jstest to test the prototype, it displays something like this:

      jstest /dev/input/js0
      Driver version is 2.1.0.
      Joystick (Arcade Controller) has 2 axes (X, Y)
      and 12 buttons (Trigger, ThumbBtn, ThumbBtn2, TopBtn, TopBtn2, PinkieBtn, BaseBtn, BaseBtn2, BaseBtn3, BaseBtn4, BaseBtn5, BaseBtn6).
      Testing ... (interrupt to exit)
      Axes: 0: 0 1: 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

      I am wondering where on earth those names ThumbBtn, ThumbBtn2 etc come out from. In my firmware I never named them so and I never painted my button pink. That must be specific to jstest, right? Hope someone know better about jstest let me know what is this all about.

      Thanks.

      WH

      RiverstormR mediamogulM 2 Replies Last reply Reply Quote 0
      • RiverstormR
        Riverstorm @whsiung
        last edited by Riverstorm

        @whsiung said in jstest question:

        I am wondering where on earth those names ThumbBtn, ThumbBtn2 etc come out from.

        I have never put that much thought into jstest button labels. I press the button get the value associated with it and use it for configuration or testing.

        I would assume they are just generic labels given to the input buttons detected on the controller RetroPie detects. I would imagine the devs code drivers to try and cover as many input devices as possible but it's not a perfect process with all the devices out there.

        I never painted my button pink. That must be specific to jstest, right?

        I have to be honest I don't know what you're trying to ask here.

        whsiungW 1 Reply Last reply Reply Quote 0
        • mediamogulM
          mediamogul Global Moderator @whsiung
          last edited by mediamogul

          @whsiung said in jstest question:

          I am wondering where on earth those names ThumbBtn, ThumbBtn2 etc come out from. In my firmware I never named them so and I never painted my button pink.

          Notice that it reads "Pinkie" and not "Pink". I don't know that there is a regional difference to this reference, but if you are perhaps outside of the USA, it should be noted that the "Pinkie" finger refers to the smallest outside finger of either hand. As far as where these names came from, I believe jstest is reading the names as registered by the component manufacturer that resides in the firmware.

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

          whsiungW 1 Reply Last reply Reply Quote 0
          • whsiungW
            whsiung @Riverstorm
            last edited by

            @Riverstorm said in jstest question:

            I have to be honest I don't know what you're trying to ask here.

            Thanks for your reply.

            You has given an explanation that explains well with regard to my doubt. I appreciate it.
            Thanks again.

            WH

            1 Reply Last reply Reply Quote 0
            • whsiungW
              whsiung @mediamogul
              last edited by whsiung

              @mediamogul

              Hi,

              Oh my bad. LOL.

              Glad that you spotted that and thanks for pointing it out.

              By the way, I think @Riverstorm explained it well. That names should be the best guess by jstest. I designed the board and wrote the firmware. I don't name those buttons so :)

              WH

              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.