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

Multiple DualShock 4 Controlers detected as one

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P2: Important
    • None
    • 5.13.2
    • GamePad
    • None
    • Ubuntu 19.10, latest Qt version from online installer (5.13.2)
    • 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

            janichol Andy Nichols
            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