Detect wrongly labelled wheel buttons
authorAllan Sandfeld Jensen <allan.jensen@digia.com>
Tue, 19 Aug 2014 12:45:45 +0000 (14:45 +0200)
committerShawn Rutledge <shawn.rutledge@digia.com>
Wed, 20 Aug 2014 08:21:13 +0000 (10:21 +0200)
commit29787ec29cfa579e5bbf896dee093931a9f1385f
treef4c68c958bead680cf3e2d4616342de549e688dd
parent1bae226076b37ba925bf810639e1674130ad622a
Detect wrongly labelled wheel buttons

A mouse device with both missing labels and a wrongly placed label
on the mouse wheel buttons have been spotted.

This patch makes the XInput2 code even more lenient to better match
legacy systems that always assumed button 4 and 5 are mapped that way.

Task-number: QTBUG-40806
Change-Id: I7cc52f3d9c54e15e6f3ddcc2bdeb1bb8e0ac9eca
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
src/plugins/platforms/xcb/qxcbconnection_xi2.cpp