diff options
author | Cameron Cawley | 2019-03-23 22:35:23 +0000 |
---|---|---|
committer | Thierry Crozat | 2019-04-30 22:17:04 +0100 |
commit | d7b2b1b8f94c15437eb2c1b46c345ebc44f9588e (patch) | |
tree | 27b36c7dac96991eac33fe374ef3bb37dca9c09d /common/events.h | |
parent | fb26f21d0478a29da16bd7daa10110aa97a2b604 (diff) | |
download | scummvm-rg350-d7b2b1b8f94c15437eb2c1b46c345ebc44f9588e.tar.gz scummvm-rg350-d7b2b1b8f94c15437eb2c1b46c345ebc44f9588e.tar.bz2 scummvm-rg350-d7b2b1b8f94c15437eb2c1b46c345ebc44f9588e.zip |
GUI: Support adding games via Drag and Drop
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; |