SDL2 joystick interrogator 2.0

Posted by (twitter: @sealfin)
August 2nd, 2018 9:00 am

SDL2 joystick interrogator 2.0

I recently rebooted development of a project I tried to develop for the Ludum Dare 20 contest held in April 2011, the theme of which was “It’s dangerous to go alone! Take this!”

As the project will require a controller with an analogue stick to play I’ve begun to develop a utility to interrogate the capabilities of various controllers; and, as I feel that the SDL2 documentation is lacking with regards to the joystick support offered by that library, I’ve posted – in addition to an executable of that utility for Mac OS X (and I want to release executables for additional platforms – the Raspberry Pi in particular – in the future) – the source code to that utility to GitHub for the benefit both of myself and of others.

Note that to use the utility you will need to have SDL2_image – in addition to SDL2 – installed.

Amongst the changes in version 2.0 of the utility are that:

  • the utility now features support for multiple controllers;
  • the utility now features detection of POV hats (and, contrary to what I wrote in the past, the D-pad of the Sony PlayStation 2 DualShock 2 controller is not disabled in analogue mode – rather, it is in that mode detected as being a POV hat (at least using my PlayStation-to-USB adapter));
  • the utility now features preliminary detection of trackballs – “preliminary” as neither of my controllers (the other being a Sony PlayStation 3 DualShock 3) features a trackball;
  • the utility now features preliminary detection of whether or not a controller has haptic capabilities – “preliminary” as neither of my controllers has been detected as having haptic capabilities in spite of both of my controllers having haptic capabilities (although my adapter or my OS (Mac OS X 10.6 Snow Leopard) might be to blame).

46 Responses to “SDL2 joystick interrogator 2.0”

  1. jedymark says:

    Play game happy wheels online now

  2. alimatt619 says:

    Can I integrate this with my underrated gamecube games ???

    It is nintendo one..

    Can you help me out ???

  3. eva33 says:

    This is the wonderful post i saw today. I really enjoyed lot while reading this post thanks for sharing this kind of useful information.

  4. solankipandit2 says:

    how to download Test DPC
    for you smartphone

  5. letsdosurvey says:

    thankyou for this post. efforts appreciated
    Hotmail login

  6. maryrosie says:

    This utility is very helpful, thanks for sharing this!read wuxiaworld

  7. vedant12345 says:

    Thank you so much for this site.

  8. Cydia app helps to get appcake for your jailbroken and non jailbroken iOS device.
    Showbox for iphone

  9. skirlskaters says:

    Im in love with your content and also gain some knowledge from your blog.
    super mario bros full game.

  10. rburema says:

    As you’ve probably noticed by the spammy replies by now, this is the old/legacy website of Ludum Dare, the new one is at ldjam dot com. (Hope I’m getting through, since you’re probably ignoring these by now…)

  11. DyraSan says:

    What is Handling Joysticks??
    Is there any specific steps?

  12. Temporary says:

    Download Tutuapp from this website

  13. riyasen says:

    Thank you So much for sharing this useful information, I was searching this from last one month I found this article really helpful. Definitely going to check out the info you shared. This great article and am highly impressed on it keep up your good work. by Daira

  14. jessicabelorr says:

    Even professional video makers, such as the ones who make music videos, want to hear feedback on their work.

  15. jessicabelorr says:

    The facts and the tips and the tools are not your business either.

  16. Sharon3Q says:

    may god bless you

  17. nancypamela says:

    Logo Motix, a Professional Logo Design in London UK, serving a large number of customers around the world, render our administrations primarily in the field of unraveling advanced and primary web solutions for organizations and businesses needing a push to move ahead among other higher-ranked businesses in the world. With the amount of rivalry in this field, it important for each organization to stand out of the crowd primarily as far as logo and brand schemes are concerned, adding flavor and reason to their business game. We at Logo Motix, pave the way for each customer in one of a kind ways, ensuring they stand apart among others throughout their business adventures.

  18. dinda06 says:

    you must try this: http//

  19. dinda06 says:

    you must try this: http// or Komunitas Poker Indonesia

  20. annemanike says:

    Download best Filelinked app for Android and enjoy free streaming on your Android TV , Phone and more for free.

    Get in touch with next new App Market ac market for android. Contain millions of Android apps and games for free. No limitation. No login and subscription required.

  21. mariapalora says:

    Angel investor groups are acquiring better acknowledgment as primary patrons in early-stage industry, attaining eminent rankings in industry-related annual surveys of private equity investment firms for entrepreneurs.

    Mejor torrent

  22. markperson says:


    Thank for sharing such a nice topic on your blog keep it up and share more.

    Blog journalexplore

  23. jessicabelorr says:

    The most important goal of business credit though is to obtain unsecured business lines of credit, which can be done once the business credit profile is set up properly.

  24. blospas says:

    Next time I read a blog, Hopefully it does not disappoint me as much as this particular one. After all, Yes, it was my choice to read, however I actually believed you’d have something helpful to say. All I hear is a bunch of complaining about something that you could fix if you weren’t too busy looking for attention.

  25. goalken says:

    It is wonderful to be here with everyone, I have a lot of knowledge from what you share, to say thank you, the information and knowledge here helps me a lot enable flash in chrome

  26. markperson555 says:

    Thank for sharing the post on your blog keep it up.

  27. speedrise2 says:

    Ludumdare is the best blog, I read this topic for joysticks . how to joysticks matter is good Thanks for sharing

    BeeTV app is watch HD movies and TV serials online. its best app to watch streaming movies and videos. I love it this app i enjoy it click on more information

  28. mhmtkrcby says:

    Bahsegel bahis sitesi canlı spor bahisleri ve casino oyunları ile kesintisiz hizmet vermeye devam ediyor. Türkiye’nin en eski ve kaliteli bahis sitelerinden biri olan Bahsegel bahis sitesi ile sizde kolayca

  29. Megadede says:

    C’est une information très intéressante. Merci pour le partage.

  30. limsen says:

    As you’ve probably noticed by the spammy replies qqpokeronline by now, this is the old/legacy website of Ludum Dare, the new one is at ldjam dot com.

Leave a Reply

You must be logged in to post a comment.

[cache: storing page]