Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/input.cc')
-rw-r--r--src/client/input.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/input.cc b/src/client/input.cc
index 4d0f54b..1a61424 100644
--- a/src/client/input.cc
+++ b/src/client/input.cc
@@ -11,6 +11,7 @@
#include "client/console.h"
#include "client/camera.h"
#include "client/keyboard.h"
+#include "client/video.h"
#include "SDL/SDL.h"
@@ -117,7 +118,9 @@ void frame(float seconds)
switch (event.type) {
case SDL_KEYUP:
- if (!chat::visible() && !console::visible() &&
+ if (event.key.keysym.sym == SDLK_PRINT) {
+ video::screenshot();
+ } else if (!chat::visible() && !console::visible() &&
core::application()->connected() && core::localcontrol())
// send key events to the game world