mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 22:28:10 +00:00
HDB: Fix Game Breaking Bug in Right Mouse Button Handling
The right mouse button (which is the "Use" button for throwing gems etc.) function sets the Button B flag in the _buttons flag field, but never cleared it. This resulted in blocking of setting of movement waypoints with the left button and thus locked up the player character. You could avoid this by using the "Return" key which is also mapped to use, but this would only be possible on desktop ports or with a virtual keyboard. This commit fixes the mouse handling code to clear the flag and thus avoids future bug reports.
This commit is contained in:
parent
8f952f9ecc
commit
d7972603e7
@ -494,6 +494,9 @@ void Input::updateMouseButtons(int l, int m, int r) {
|
||||
|
||||
uint16 buttons = getButtons() | kButtonB;
|
||||
setButtons(buttons);
|
||||
} else if (!_mouseRButton) {
|
||||
uint16 buttons = getButtons() & ~kButtonB;
|
||||
setButtons(buttons);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user