summaryrefslogtreecommitdiffstats
path: root/src/sql
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@qt.io>2016-12-07 12:52:52 +0100
committerShawn Rutledge <shawn.rutledge@qt.io>2017-04-24 09:19:31 +0000
commit8bc36c773faf3bc3d68731d9cfafaf6caf2c0783 (patch)
tree83b3a6f2a01ba9b82b0969e04ce5e254818cca37 /src/sql
parent148188fef36dc96b9ebc090e3986f7fd203cf834 (diff)
Cocoa: Send correct mouse buttons for tablets
Tablet vendors allow user configurable pen buttons where the user may assign a logical mouse button to a given physical button. In the case of Wacom tablets this mapping is not reflected in the buttonMask API, which returns the state of the physical buttons. Use NSEvent buttonNummber instead, which returns the logical button number, after applying user mappings. Unifiy button state stacking with the mouse handlers. Handle a special case where buttonNumber returns 0 for tablet right mouse presses. We get these events via rightMouse* event handlers and can hardcode the button number. Change-Id: I06b9b1aa98c49b84f7e3871e694c22c7ad0169d6 Task-number: QTBUG-57487 Task-number: QTBUG-54160 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/sql')
0 files changed, 0 insertions, 0 deletions