diff options
author | Torbjörn Andersson | 2006-11-23 18:14:16 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2006-11-23 18:14:16 +0000 |
commit | 1114480ece2c96b694ce0860c9f7af5fecf15ffa (patch) | |
tree | 2f9378dfb03d481965d53eef6b8f2b88dc5511fd | |
parent | 1950e9cc50afa1b779bcf6de28fdb492a5f88912 (diff) | |
download | scummvm-rg350-1114480ece2c96b694ce0860c9f7af5fecf15ffa.tar.gz scummvm-rg350-1114480ece2c96b694ce0860c9f7af5fecf15ffa.tar.bz2 scummvm-rg350-1114480ece2c96b694ce0860c9f7af5fecf15ffa.zip |
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
-rw-r--r-- | engines/agi/keyboard.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/agi/keyboard.cpp b/engines/agi/keyboard.cpp index 1aabac9053..bb8e99e7de 100644 --- a/engines/agi/keyboard.cpp +++ b/engines/agi/keyboard.cpp @@ -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); |