mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-04 09:18:38 +00:00
Only bring up the predictive dialog on left clicks, not just any event. (I.e.
now we can still type commands, even if the mouse cursor is hovering over the text input area.) I hope this is the desired behaviour. svn-id: r24774
This commit is contained in:
parent
1950e9cc50
commit
1114480ece
@ -171,7 +171,8 @@ int handle_controller(int key) {
|
||||
}
|
||||
}
|
||||
|
||||
if ((int)mouse.y >= game.line_user_input * CHAR_LINES &&
|
||||
if (key == BUTTON_LEFT &&
|
||||
(int)mouse.y >= game.line_user_input * CHAR_LINES &&
|
||||
(int)mouse.y <= (game.line_user_input + 1) * CHAR_LINES) {
|
||||
if (_text->predictiveDialog()) {
|
||||
strcpy((char *)game.input_buffer, _text->_predictiveResult);
|
||||
|
Loading…
x
Reference in New Issue
Block a user