diff options
| author | Neil Millstone | 2007-07-02 22:45:21 +0000 | 
|---|---|---|
| committer | Neil Millstone | 2007-07-02 22:45:21 +0000 | 
| commit | 91648d68e09dbd09b6b296135a3c685cad4c459f (patch) | |
| tree | 1566153341c51dab083d9ccdea2a06c4a0b3975f | |
| parent | c43f68e5540923d04504f1ab3e4c967e04ae6257 (diff) | |
| download | scummvm-rg350-91648d68e09dbd09b6b296135a3c685cad4c459f.tar.gz scummvm-rg350-91648d68e09dbd09b6b296135a3c685cad4c459f.tar.bz2 scummvm-rg350-91648d68e09dbd09b6b296135a3c685cad4c459f.zip  | |
Adding hooks for word completion interface on DS port
svn-id: r27871
| -rw-r--r-- | engines/agi/keyboard.cpp | 14 | 
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/agi/keyboard.cpp b/engines/agi/keyboard.cpp index 17865e1f3a..3acc81ddff 100644 --- a/engines/agi/keyboard.cpp +++ b/engines/agi/keyboard.cpp @@ -29,6 +29,9 @@  #include "agi/graphics.h"  #include "agi/keyboard.h"  #include "agi/menu.h" +#ifdef __DS__ +#include "wordcompletion.h" +#endif  namespace Agi { @@ -308,6 +311,9 @@ void AgiEngine::handleKeys(int key) {  		debugC(3, kDebugLevelInput, "clear lines");  		clearLines(l, l + 1, bg);  		flushLines(l, l + 1); +#ifdef __DS__ +		DS::findWordCompletions((char *) _game.inputBuffer); +#endif  		break;  	case KEY_ESCAPE: @@ -324,6 +330,10 @@ void AgiEngine::handleKeys(int key) {  		_game.inputBuffer[--_game.cursorPos] = 0;  		/* Print cursor */  		_gfx->printCharacter(_game.cursorPos + 1, l, _game.cursorChar, fg, bg); + +#ifdef __DS__ +		DS::findWordCompletions((char *) _game.inputBuffer); +#endif  		break;  	default:  		/* Ignore invalid keystrokes */ @@ -337,6 +347,10 @@ void AgiEngine::handleKeys(int key) {  		_game.inputBuffer[_game.cursorPos++] = key;  		_game.inputBuffer[_game.cursorPos] = 0; +#ifdef __DS__ +		DS::findWordCompletions((char *) _game.inputBuffer); +#endif +  		/* echo */  		_gfx->printCharacter(_game.cursorPos, l, _game.inputBuffer[_game.cursorPos - 1], fg, bg);  | 
