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

Cocoa platform: Add support for up to 16 mouse buttons

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • 5.0.0
    • None
    • Mac. I cannot compile or test this code on my Linux box, I must depend on the T&I process for ALL verification of this code.
    • 0bb95b183b28208a9ecf88e25cc22b8086201a2b

    Description

      Sometime in the past (and probably in a Release no later than 10.4), Apple began to provide [theEvent buttonNumber] in the signatures for otherMouseDown:,
      otherMouseDragged:, and otherMouseUp: .

      Instead of mapping all such events to Qt::MiddleButton, we should be using [theEvent buttonNumber] to set and unset the correct Qt::MouseButtons value, allowing users to work with "gamer" mouse devices. Unsure of the maximum buttonNumber which OS-X might provide, I stopped at #16. Since LeftButton and RightButton occur as other Event types, "otherMouseDown:" and "otherMouseUp:" only work with buttonNumber == 3 through 16.

      Attachments

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

        Activity

          People

            stormols Marius Storm-Olsen
            rickst29 Richard Stockton
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes