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:
Torbjörn Andersson 2006-11-23 18:14:16 +00:00
parent 1950e9cc50
commit 1114480ece

View File

@ -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);