ps2: fix mouse mappings for right/middle button
authorFabian Lesniak <fabian@lesniak-it.de>
Sat, 4 Feb 2017 15:03:19 +0000 (16:03 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 20 Feb 2017 10:25:38 +0000 (11:25 +0100)
Commit 8b0caab0 ("ps2: add support for mice with extra/side buttons")
accidentally swapped right and middle mouse buttons. This commit corrects
the mapping as expected by the ps2 controller.

Signed-off-by: Fabian Lesniak <fabian@lesniak-it.de>
Message-id: 20170204150319.8907-1-fabian@lesniak-it.de
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
include/hw/input/ps2.h

index 0fec91cdb07734e92414483861988b7f249fff99..7f0a80af9dc6a143138ce0e37de02a405cad4c7b 100644 (file)
@@ -26,8 +26,8 @@
 #define HW_PS2_H
 
 #define PS2_MOUSE_BUTTON_LEFT   0x01
-#define PS2_MOUSE_BUTTON_MIDDLE 0x02
-#define PS2_MOUSE_BUTTON_RIGHT  0x04
+#define PS2_MOUSE_BUTTON_RIGHT  0x02
+#define PS2_MOUSE_BUTTON_MIDDLE 0x04
 #define PS2_MOUSE_BUTTON_SIDE   0x08
 #define PS2_MOUSE_BUTTON_EXTRA  0x10