diff options
-rw-r--r-- | src/input_system.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/input_system.cpp b/src/input_system.cpp index 1b5b56b..73a28bd 100644 --- a/src/input_system.cpp +++ b/src/input_system.cpp | |||
@@ -49,6 +49,11 @@ void InputSystem::tick(double dt) { | |||
49 | if (!debugText_.empty()) { | 49 | if (!debugText_.empty()) { |
50 | debugText_.pop_back(); | 50 | debugText_.pop_back(); |
51 | } | 51 | } |
52 | } else if (debugConsole_ && e.key.keysym.sym == SDLK_v && SDL_GetModState() & (KMOD_CTRL | KMOD_GUI)) { | ||
53 | // CTRL-V or CMD-V bc I have a Mac thanks | ||
54 | char* clipboardText = SDL_GetClipboardText(); | ||
55 | debugText_.append(clipboardText); | ||
56 | SDL_free(clipboardText); | ||
52 | } else if (e.key.keysym.sym == SDLK_LSHIFT || e.key.keysym.sym == SDLK_RSHIFT) { | 57 | } else if (e.key.keysym.sym == SDLK_LSHIFT || e.key.keysym.sym == SDLK_RSHIFT) { |
53 | if (game_.isGameplayPaused()) continue; | 58 | if (game_.isGameplayPaused()) continue; |
54 | 59 | ||