diff options
Diffstat (limited to 'common/events.h')
-rw-r--r-- | common/events.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/common/events.h b/common/events.h index a514ea291e..4b35725225 100644 --- a/common/events.h +++ b/common/events.h @@ -72,21 +72,21 @@ 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_ACTION = 18, EVENT_CUSTOM_BACKEND_HARDWARE = 21, EVENT_GUI_REMAP_COMPLETE_ACTION = 22, - EVENT_KEYMAPPER_REMAP = 19 + EVENT_KEYMAPPER_REMAP = 19, #endif #ifdef ENABLE_VKEYBD - , - EVENT_VIRTUAL_KEYBOARD = 20 + EVENT_VIRTUAL_KEYBOARD = 20, #endif + + EVENT_DROP_FILE = 23 }; typedef uint32 CustomEventType; @@ -127,6 +127,9 @@ struct Event { CustomEventType customType; #endif + /* The path of the file or directory dragged to the ScummVM window */ + Common::String path; + Event() : type(EVENT_INVALID), kbdRepeat(false) { #ifdef ENABLE_KEYMAPPER customType = 0; |