aboutsummaryrefslogtreecommitdiff
path: root/backends/events
diff options
context:
space:
mode:
authorMatthew Hoops2012-04-09 11:19:25 -0400
committerMatthew Hoops2012-04-09 11:19:25 -0400
commitec0b4f7b96676dac890503cc156113b0966886b3 (patch)
tree64fc04ae63b16b963f94d3d7ca6748a1c7ec7fe6 /backends/events
parentf58d834cdaf4ddd741ccdcb0f9a7d0f2adcfa785 (diff)
downloadscummvm-rg350-ec0b4f7b96676dac890503cc156113b0966886b3.tar.gz
scummvm-rg350-ec0b4f7b96676dac890503cc156113b0966886b3.tar.bz2
scummvm-rg350-ec0b4f7b96676dac890503cc156113b0966886b3.zip
SDL: Allow for the meta key flag to be used
Diffstat (limited to 'backends/events')
-rw-r--r--backends/events/sdl/sdl-events.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/backends/events/sdl/sdl-events.cpp b/backends/events/sdl/sdl-events.cpp
index f94171646a..0ca5bbb059 100644
--- a/backends/events/sdl/sdl-events.cpp
+++ b/backends/events/sdl/sdl-events.cpp
@@ -191,6 +191,8 @@ void SdlEventSource::SDLModToOSystemKeyFlags(SDLMod mod, Common::Event &event) {
#endif
if (mod & KMOD_CTRL)
event.kbd.flags |= Common::KBD_CTRL;
+ if (mod & KMOD_META)
+ event.kbd.flags |= Common::KBD_META;
// Sticky flags
if (mod & KMOD_NUM)