Mercurial > hg > orthanc-stone
changeset 170:0261909fa6f0 wasm
add support for plus/minus in SDL
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 02 Mar 2018 14:24:47 +0100 |
parents | 7105e51e4907 |
children | 01e32beee56c |
files | Applications/Sdl/SdlEngine.cpp Resources/CMake/OrthancStoneConfiguration.cmake |
diffstat | 2 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/Applications/Sdl/SdlEngine.cpp Fri Mar 02 12:35:27 2018 +0100 +++ b/Applications/Sdl/SdlEngine.cpp Fri Mar 02 14:24:47 2018 +0100 @@ -251,6 +251,14 @@ case SDLK_KP_8: locker.GetViewport().KeyPressed('8', modifiers); break; case SDLK_KP_9: locker.GetViewport().KeyPressed('9', modifiers); break; + case SDLK_PLUS: + case SDLK_KP_PLUS: + locker.GetViewport().KeyPressed('+', modifiers); break; + + case SDLK_MINUS: + case SDLK_KP_MINUS: + locker.GetViewport().KeyPressed('-', modifiers); break; + default: break; }
--- a/Resources/CMake/OrthancStoneConfiguration.cmake Fri Mar 02 12:35:27 2018 +0100 +++ b/Resources/CMake/OrthancStoneConfiguration.cmake Fri Mar 02 14:24:47 2018 +0100 @@ -39,10 +39,6 @@ message(FATAL_ERROR "Cannot enable curl in sandboxed environments") endif() - if (ENABLE_LOGGING) - message(FATAL_ERROR "Cannot enable logging in sandboxed environments") - endif() - if (ENABLE_SDL) message(FATAL_ERROR "Cannot enable SDL in sandboxed environments") endif()