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

Multiple DualShock 4 Controlers detected as one

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Won't Do
    • Affects Version/s: 5.13.2
    • Fix Version/s: None
    • Component/s: GamePad
    • Labels:
      None
    • Environment:
      Ubuntu 19.10, latest Qt version from online installer (5.13.2)
    • Platform/s:
      Linux/X11

      Description

      I've tried to use Qt GamePad with my 4 DS4 controllers.

      I've connected 4 Sony DualShock 4 v2 controllers via Bluetooth.

      It should detect all gamepads and print events of all of them.

      It thinks that only one gamepad has been connected, but I have connected 4 gamepads.

          auto gamepads = QGamepadManager::instance()->connectedGamepads();
          qDebug() << "Number of gamepads:" << gamepads.size();
      

      prints "Number of gamepads: 1"

      If I press any button on one of them, it prints a message that button was pressed, but shows the same device ID.
      Environment: Ubuntu 19.10, latest Qt version from online installer (5.13.2)

      tried

      QT_GAMEPAD=sdl2

      and

      QT_GAMEPAD=evdev

      Both resulting in the same issue: all 4 act as if they were 1 gamepad

       

      $ ls /dev/input/js*
      /dev/input/js0  /dev/input/js1  /dev/input/js2  /dev/input/js3

        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:
            gscheikl Gerhard Scheikl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes