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

Surface2 has a non-standard Wintab ID on

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 4.8.4
    • Fix Version/s: 5.4.0
    • Component/s: Core: Plugins
    • Labels:
    • Commits:
      1b32e8d7d488e0d0b96d6d39117ff41014791105 (5.4, 29.8.2014, 5.4)

      Description

      In Krita we had to add this code to make it work in Qt 4.8

      const uint cursorTypeBitMask = 0x0F06; // bitmask to find the specific cursor type (see Wacom FAQ)
      
      if (((csr_type & 0x0006) == 0x0002) && ((csr_type & cursorTypeBitMask) != 0x0902)) {
          tdd.currentDevice = QTabletEvent::Stylus;
      } else if (csr_type == 0x4020) { // Surface Pro 2 tablet device
          tdd.currentDevice = QTabletEvent::Stylus;
      } else {
      ...
      }
      

      I don't know whether it is fixed in Qt5

        Attachments

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

          Activity

            People

            Assignee:
            srutledg Shawn Rutledge
            Reporter:
            dkazakov Dmitry Kazakov
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes