diff options
author | Cameron Cawley | 2019-04-02 22:41:21 +0100 |
---|---|---|
committer | GitHub | 2019-04-02 22:41:21 +0100 |
commit | e40cdea6ba495abf76aa55d61186bd52c53c82bf (patch) | |
tree | 6cd9f0e0faa0ba061993831d6c6145a61f45fc6c /backends | |
parent | d9e6e9f0e82bbc7e9d44ea2c608c1b8ba49e9f28 (diff) | |
download | scummvm-rg350-e40cdea6ba495abf76aa55d61186bd52c53c82bf.tar.gz scummvm-rg350-e40cdea6ba495abf76aa55d61186bd52c53c82bf.tar.bz2 scummvm-rg350-e40cdea6ba495abf76aa55d61186bd52c53c82bf.zip |
SDL: Use Common::KEYCODE_KP_ENTER instead of SDLK_KP_ENTER
Diffstat (limited to 'backends')
-rw-r--r-- | backends/graphics/sdl/sdl-graphics.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/graphics/sdl/sdl-graphics.cpp b/backends/graphics/sdl/sdl-graphics.cpp index cf81e04f4d..a9902cf844 100644 --- a/backends/graphics/sdl/sdl-graphics.cpp +++ b/backends/graphics/sdl/sdl-graphics.cpp @@ -313,7 +313,7 @@ bool SdlGraphicsManager::notifyEvent(const Common::Event &event) { // Alt-Return and Alt-Enter toggle full screen mode if (event.kbd.hasFlags(Common::KBD_ALT) && (event.kbd.keycode == Common::KEYCODE_RETURN || - event.kbd.keycode == (Common::KeyCode)SDLK_KP_ENTER)) { + event.kbd.keycode == Common::KEYCODE_KP_ENTER)) { toggleFullScreen(); return true; } @@ -329,7 +329,7 @@ bool SdlGraphicsManager::notifyEvent(const Common::Event &event) { case Common::EVENT_KEYUP: if (event.kbd.hasFlags(Common::KBD_ALT)) { return event.kbd.keycode == Common::KEYCODE_RETURN - || event.kbd.keycode == (Common::KeyCode)SDLK_KP_ENTER + || event.kbd.keycode == Common::KEYCODE_KP_ENTER || event.kbd.keycode == Common::KEYCODE_s; } |