Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-85830

QGamepadManager does not detect gamepad connections and disconnections

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Won't Do
    • Affects Version/s: 5.15.0
    • Fix Version/s: None
    • Component/s: GamePad
    • Labels:
      None
    • Environment:
      OS: Ubuntu 20.04 LTS
      Qt: 5.15.0
      Gamepad: Moga Pro Gamepad (bluetooth connection)
    • Platform/s:
      Linux/X11

      Description

      The QGamepadManager signals connectedGamepadsChanged, gamepadConnected and gamepadDisconnected are not emitted when I connect and disconnect my gamepad.  I have verified that /dev/input/js0 is created when the gamepad is connected and deleted when the gamepad is disconnected, but still the QGamepadManager does not detect the change.

      The only way the gamepad shows up in QGamepadManager's connectedGamepads is if the gamepad is connected before the Qt application is launched.  In that case the QGamepad button and axis signals work fine, but the connectedChanged signal is not emitted when the gamepad is disconnected.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            janichol Andy Nichols
            Reporter:
            jeff.lalo Jeff Lalonde
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes