Skip to content

Commit

Permalink
ps2: fix mouse mappings for right/middle button
Browse files Browse the repository at this point in the history
Commit 8b0caab ("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 <[email protected]>
Message-id: [email protected]
Signed-off-by: Gerd Hoffmann <[email protected]>
  • Loading branch information
flesniak authored and kraxel committed Feb 20, 2017
1 parent ad584d3 commit ed6f72b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/hw/input/ps2.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ed6f72b

Please sign in to comment.