Support 16+4 mouse buttons within the generic/evdevmouse plugin.
authorRick Stockton <rickstockton@reno-computerhelp.com>
Thu, 1 Mar 2012 07:56:34 +0000 (23:56 -0800)
committerQt by Nokia <qt-info@nokia.com>
Fri, 2 Mar 2012 09:03:16 +0000 (10:03 +0100)
commitd505886dd696d0f01bb64cbc7a1191d960d4d060
tree5a9f69f915ff5bdadc031a24ff5d45099e06b62d
parent93ee903da7b10326b40bc43d5f5c659d527e8814
Support 16+4 mouse buttons within the generic/evdevmouse plugin.

The Kernel's evdev module is capable of presenting up to 16 mouse
buttons, plus wheel events (UP, DOWN, LEFT, and RIGHT). This
patch updates our Plugin, so that it tranlates all of those button
numbers into corresponding MouseEvent Qt::MouseButton values.

Task-number: QTBUG-24590

Change-Id: Ib8cbb9500280c76f06a51ce95095e22ae84de1c6
Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
src/plugins/generic/evdevmouse/qevdevmouse.cpp