mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 08:25:35 +00:00
COMMON: Enable backend specific custom events only when the Keymapper is enabled.
Otherwise there is no way of generating these events, thus it's better to make people really aware of this. I furthermore added some nots that its part of a WIP API, thus it should only be used after checking up.
This commit is contained in:
parent
d811240a9d
commit
d127843859
@ -72,8 +72,14 @@ enum EventType {
|
||||
* 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,
|
||||
EVENT_PREDICTIVE_DIALOG = 12
|
||||
|
||||
#ifdef ENABLE_KEYMAPPER
|
||||
,
|
||||
// IMPORTANT NOTE: This is part of the WIP Keymapper. If you plan to use
|
||||
// this, please talk to tsoliman and/or LordHoto.
|
||||
EVENT_CUSTOM_BACKEND = 13
|
||||
#endif
|
||||
};
|
||||
|
||||
typedef uint32 CustomEventType;
|
||||
@ -101,7 +107,11 @@ struct Event {
|
||||
*/
|
||||
Point mouse;
|
||||
|
||||
#ifdef ENABLE_KEYMAPPER
|
||||
// IMPORTANT NOTE: This is part of the WIP Keymapper. If you plan to use
|
||||
// this, please talk to tsoliman and/or LordHoto.
|
||||
CustomEventType customType;
|
||||
#endif
|
||||
|
||||
Event() : type(EVENT_INVALID), synthetic(false) {}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user