jstest question
-
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:offI 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.
-
@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.
-
@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.
-
@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. -
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 :)
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.