diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/client.cpp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp index 3a5a3f943..0b913c601 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -2926,6 +2926,30 @@ void Client::logEvent(const SDL_Event &event) str = name2; \ break + case SDL_FINGERDOWN: + { + const SDL_TouchFingerEvent &touch = event.tfinger; + logger->log("event: SDL_FINGERDOWN: %lld,%lld (%f,%f) (%f,%f)", + touch.touchId, touch.fingerId, touch.x, touch.y, + touch.dx, touch.dy); + break; + } + case SDL_FINGERUP: + { + const SDL_TouchFingerEvent &touch = event.tfinger; + logger->log("event: SDL_FINGERUP: %lld,%lld (%f,%f) (%f,%f)", + touch.touchId, touch.fingerId, touch.x, touch.y, + touch.dx, touch.dy); + break; + } + case SDL_FINGERMOTION: + { + const SDL_TouchFingerEvent &touch = event.tfinger; + logger->log("event: SDL_FINGERMOTION: %lld,%lld (%f,%f) (%f,%f)", + touch.touchId, touch.fingerId, touch.x, touch.y, + touch.dx, touch.dy); + break; + } case SDL_KEYDOWN: logger->log("event: SDL_KEYDOWN: %d,%d", event.key.state, event.key.keysym.scancode); @@ -2975,6 +2999,21 @@ void Client::logEvent(const SDL_Event &event) case SDL_TEXTINPUT: logger->log("event: SDL_TEXTINPUT: %s", event.text.text); break; + case SDL_APP_TERMINATING: + logger->log("SDL_APP_TERMINATING"); + break; + case SDL_APP_LOWMEMORY: + logger->log("SDL_APP_LOWMEMORY"); + break; + case SDL_APP_WILLENTERBACKGROUND: + logger->log("SDL_APP_WILLENTERBACKGROUND"); + break; + case SDL_APP_WILLENTERFOREGROUND: + logger->log("SDL_APP_WILLENTERFOREGROUND"); + break; + case SDL_APP_DIDENTERFOREGROUND: + logger->log("SDL_APP_DIDENTERFOREGROUND"); + break; #else case SDL_KEYDOWN: logger->log("event: SDL_KEYDOWN: %d,%d,%d", event.key.state, |