Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Hotplugging joystick events getting consumed
Forum Updated to NodeBB v4.3 + New Features

Hotplugging joystick events getting consumed

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 604 Views
  • 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.
  • R Offline
    R Offline
    RogueWarrior
    wrote on last edited by
    #1

    I'm attempting to make use of the joystick device adding and removal events from the SDL library within a Qt application. The things works great if it's plugged in when I launch the app i.e. I can get joystick inputs all day long. But for some weird reason, the device add and device removal events never get to my poll event loop. I've tried a number of things such as having the event polling in a timer and making the whole thing a QThread. To make matters worse, if I put my joystick code in a dead-simple hello-world type Qt app, it works fine.

    So, it would seem that somewhere in the swamp of a much larger application, the events are getting consumed or filtered out. Does Qt even look at device connection/disconnection events?

    1 Reply Last reply
    0
    • R Offline
      R Offline
      RogueWarrior
      wrote on last edited by
      #2

      I solved it by upgrading from SDL 2.0.3 to SDL 2.0.4.

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved