mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 08:25:35 +00:00
added EVENT_PREDICTIVE_DIALOG event to bring up the predictive dialog on demand by the backends
svn-id: r27005
This commit is contained in:
parent
c739b43bc7
commit
f66fb12718
@ -34,7 +34,7 @@ namespace Common {
|
||||
* @see Event
|
||||
*
|
||||
* @todo Merge EVENT_LBUTTONDOWN, EVENT_RBUTTONDOWN and EVENT_WHEELDOWN;
|
||||
* likewiese EVENT_LBUTTONUP, EVENT_RBUTTONUP, EVENT_WHEELUP.
|
||||
* likewise EVENT_LBUTTONUP, EVENT_RBUTTONUP, EVENT_WHEELUP.
|
||||
* To do that, we just have to add a field to the Event which
|
||||
* indicates which button was pressed.
|
||||
*/
|
||||
@ -53,7 +53,8 @@ enum EventType {
|
||||
EVENT_WHEELDOWN = 9,
|
||||
|
||||
EVENT_QUIT = 10,
|
||||
EVENT_SCREEN_CHANGED = 11
|
||||
EVENT_SCREEN_CHANGED = 11,
|
||||
EVENT_PREDICTIVE_DIALOG = 12
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -68,6 +68,12 @@ void AgiEngine::processEvents() {
|
||||
_gfx->deinitMachine();
|
||||
_system->quit();
|
||||
break;
|
||||
case Common::EVENT_PREDICTIVE_DIALOG:
|
||||
if (predictiveDialog()) {
|
||||
strcpy((char *)_game.inputBuffer, _predictiveResult);
|
||||
handleKeys(KEY_ENTER);
|
||||
}
|
||||
break;
|
||||
case Common::EVENT_LBUTTONDOWN:
|
||||
key = BUTTON_LEFT;
|
||||
g_mouse.button = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user