diff options
author | Fabian Lesniak <fabian@lesniak-it.de> | 2017-02-04 16:03:19 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2017-02-20 11:25:38 +0100 |
commit | ed6f72b827fe99870d610d3697270a9858922186 (patch) | |
tree | 06e71b463d2f1b9f175a1dab559767804d2c22ec | |
parent | ad584d37f2a86b392c25f3f00cc1f1532676c2d1 (diff) | |
download | qemu-ed6f72b827fe99870d610d3697270a9858922186.zip qemu-ed6f72b827fe99870d610d3697270a9858922186.tar.gz qemu-ed6f72b827fe99870d610d3697270a9858922186.tar.bz2 |
ps2: fix mouse mappings for right/middle button
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>
-rw-r--r-- | include/hw/input/ps2.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/hw/input/ps2.h b/include/hw/input/ps2.h index 0fec91c..7f0a80a 100644 --- a/include/hw/input/ps2.h +++ b/include/hw/input/ps2.h @@ -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 |