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

Properly register the input devices on Android

    XMLWordPrintable

Details

    • Android
    • 8d11e05f8 (dev), 62f83ac45 (6.5), ea4501366 (tqtc/lts-6.2)

    Description

      In https://code.qt.io/cgit/qt/qtbase.git/tree/src/plugins/platforms/android/androidjniinput.cpp#n299 getTouchDevice() calls registerInputDevice(), and getTouchDevice() is called only from touchEnd() and touchCancel(). But all platforms should register their input devices as soon as they are discovered (preferably at startup), and every input event should have its QInputEvent::device() being the actual device that the event comes from. This is what we depend on to recognize that a synthesized mouse event actually comes from a touchscreen, or a stylus, for example: it's a QMouseEvent but device() says it's really from a different device, not a mouse.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-101875
          # Subject Branch Project Status CR V

          Activity

            People

              qtandroidteam Qt Android Team
              assam Assam Boudjelthia
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes