Skip to main content

News

Topic: I wrote a joystick tester (Read 5911 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
I wrote a joystick tester
I wrote this a while ago, but I had reason to use it again recently.

https://github.com/FlyingJester/joystick_test

It's a joystick tester, and it's mostly useful when you want to know what number a certain button on a joystick is, or what the name and number of the joystick itself is. It's also fairly useful for calibrating the joystick if you want to know where deadzones are.

I remember that Windows 2000 had something very much like this, but only for gameport joysticks. I assume it was killed off because the gameport was (sadly) deprecated, but I've never really come across a nice replacement for it. So I wrote my own, while working on a beat-em-up that used SDL2. I figured I'd share it, in case someone else needed it.

It depends on SDL2 and fltk, although the fltk part is optional, in which case it runs on the command line only.

  • Fat Cerberus
  • [*][*][*][*][*]
  • Global Moderator
  • Sphere Developer
Re: I wrote a joystick tester
Reply #1
I believe Windows XP had something like this buried in Control Panel which also worked for USB joysticks/gamepads (plus a wizard for analog calibration).  I don't remember if it was in Vista and later though, so this is nifty.  When I get around to replacing my gamepad (the wire of my old one developed a short), I'll be sure to try this out.
neoSphere 5.9.2 - neoSphere engine - Cell compiler - SSj debugger
forum thread | on GitHub

Re: I wrote a joystick tester
Reply #2
I believe I've encountered it here on Windows 7, made it quick and easy to calibrate and figure out buttons on my usb gamecube and n64 controllers.

Yup, Control Panel > Devices and Printers > Right click on a game controller > Game Controller Settings
Use properties to view the inputs, do calibration, etc.

I'll have to check if it's in Win10 tomorrow.

  • DaVince
  • [*][*][*][*][*]
  • Administrator
  • Used Sphere for, like, half my life
Re: I wrote a joystick tester
Reply #3
Quote
Yup, Control Panel > Devices and Printers > Right click on a game controller > Game Controller Settings

Open start menu, type "controller", press enter.

Really, the search box is the most useful thing MS ever added to the start menu/launchers. :P

Re: I wrote a joystick tester
Reply #4
Well, phooey! I never found it in Vista on up.

I mostly used this on OS X and Linux (and now FreeBSD), and there are still no system-included equivalents there :P

  • Fat Cerberus
  • [*][*][*][*][*]
  • Global Moderator
  • Sphere Developer
Re: I wrote a joystick tester
Reply #5

I mostly used this on OS X and Linux (and now FreeBSD), and there are still no system-included equivalents there :P


Really?  I can see Linux and FreeBSD not having it, but you'd think OS X would. :o
neoSphere 5.9.2 - neoSphere engine - Cell compiler - SSj debugger
forum thread | on GitHub

Re: I wrote a joystick tester
Reply #6
OS X ain't what it used to be.

Perhaps Gnome or KDE has one, but I don't use either of those. And if they do, you certainly couldn't install it and all of its dependencies in a few megabytes.

  • DaVince
  • [*][*][*][*][*]
  • Administrator
  • Used Sphere for, like, half my life
Re: I wrote a joystick tester
Reply #7

Well, phooey! I never found it in Vista on up.

I mostly used this on OS X and Linux (and now FreeBSD), and there are still no system-included equivalents there :P

jstest-gtk is pretty decent! It lets you set up multiple configurations. It doesn't require much in the way of dependencies either.