diff options
author | Kostas Nakos | 2007-06-03 18:44:03 +0000 |
---|---|---|
committer | Kostas Nakos | 2007-06-03 18:44:03 +0000 |
commit | 5df28554acb998b7df686122bb26cb897e40e075 (patch) | |
tree | dc7fed374aa6ea9161a56c92bf78a2f8aacd0245 /common | |
parent | cd6f145577453c8025b9b4cb2b062fe80d5034f7 (diff) | |
download | scummvm-rg350-5df28554acb998b7df686122bb26cb897e40e075.tar.gz scummvm-rg350-5df28554acb998b7df686122bb26cb897e40e075.tar.bz2 scummvm-rg350-5df28554acb998b7df686122bb26cb897e40e075.zip |
Adding the new kFeatureDisableKeyFiltering OSystem feature.
This feature is used by agi's prediction dialog and is a hint to the backend
to temporarily switch off any keyboard mapping, used in devices with limited
keyboard input. Also, supply some comments to the newly added event & feature.
svn-id: r27069
Diffstat (limited to 'common')
-rw-r--r-- | common/events.h | 6 | ||||
-rw-r--r-- | common/system.h | 19 |
2 files changed, 23 insertions, 2 deletions
diff --git a/common/events.h b/common/events.h index 9b434e94f9..ac12fd3f4c 100644 --- a/common/events.h +++ b/common/events.h @@ -57,6 +57,12 @@ enum EventType { EVENT_QUIT = 10, EVENT_SCREEN_CHANGED = 11, + /** The backend requests the agi engine's predictive dialog to be shown. + * TODO: Fingolfin suggests that it would be of better value to expand + * on this notion by generalizing its use. For example the backend could + * use events to ask for the save game dialog or to pause the engine. + * An associated enumerated type can accomplish this. + **/ EVENT_PREDICTIVE_DIALOG = 12 }; diff --git a/common/system.h b/common/system.h index ccca1fb7c7..500056e695 100644 --- a/common/system.h +++ b/common/system.h @@ -125,7 +125,7 @@ public: kFeatureAutoComputeDirtyRects, /** - * This flags determines either cursor can have its own palette or not + * This flag determines either cursor can have its own palette or not * It is currently used only by some Macintosh versions of Humongous * Entertainment games. If backend doesn't implement this feature then * engine switches to b/w version of cursors. @@ -142,7 +142,22 @@ public: /** * Set to true to iconify the window. */ - kFeatureIconifyWindow + kFeatureIconifyWindow, + + /** + * This feature, set to true, is a hint toward the backend to disable all + * key filtering/mapping, in cases where it would be beneficial to do so. + * As an example case, this is used in the agi engine's predictive dialog. + * When the dialog is displayed this feature is set so that backends with + * phone-like keypad temporarily unmap all user actions which leads to + * comfortable word entry. Conversely, when the dialog exits the feature + * is set to false. + * TODO: Fingolfin suggests that the way the feature is used can be + * generalized in this sense: Have a keyboard mapping feature, which the + * engine queries for to assign keys to actions ("Here's my default key + * map for these actions, what do you want them set to?"). + */ + kFeatureDisableKeyFiltering }; /** |