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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue