[Scummvm-cvs-logs] SF.net SVN: scummvm: [24774] scummvm/trunk/engines/agi/keyboard.cpp
eriktorbjorn at users.sourceforge.net
eriktorbjorn at users.sourceforge.net
Thu Nov 23 19:14:16 CET 2006
Revision: 24774
http://svn.sourceforge.net/scummvm/?rev=24774&view=rev
Author: eriktorbjorn
Date: 2006-11-23 10:14:16 -0800 (Thu, 23 Nov 2006)
Log Message:
-----------
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.
Modified Paths:
--------------
scummvm/trunk/engines/agi/keyboard.cpp
Modified: scummvm/trunk/engines/agi/keyboard.cpp
===================================================================
--- scummvm/trunk/engines/agi/keyboard.cpp 2006-11-23 08:54:34 UTC (rev 24773)
+++ scummvm/trunk/engines/agi/keyboard.cpp 2006-11-23 18:14:16 UTC (rev 24774)
@@ -171,7 +171,8 @@
}
}
- 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);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list