summaryrefslogtreecommitdiff
path: root/src/game/GameView.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-01-26 18:06:23 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-01-26 18:06:23 (GMT)
commite84f0fc6e5301265708a99b13ab898ce45422611 (patch)
tree2bbcf8aeb7e0b4177ccaa22a0bde2add3c696765 /src/game/GameView.cpp
parent824d3c069bc409d268a2a15352e96868a7731a56 (diff)
downloadpowder-e84f0fc6e5301265708a99b13ab898ce45422611.zip
powder-e84f0fc6e5301265708a99b13ab898ce45422611.tar.gz
Ellipse cursor
Diffstat (limited to 'src/game/GameView.cpp')
-rw-r--r--src/game/GameView.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game/GameView.cpp b/src/game/GameView.cpp
index 163c2f7..ec87f64 100644
--- a/src/game/GameView.cpp
+++ b/src/game/GameView.cpp
@@ -3,6 +3,7 @@
#include "interface/Window.h"
#include "interface/Button.h"
#include "interface/Colour.h"
+#include "interface/Keys.h"
GameView::GameView():
ui::Window(ui::Point(0, 0), ui::Point(XRES+BARSIZE, YRES+MENUSIZE)),
@@ -399,9 +400,12 @@ void GameView::OnKeyPress(int key, bool shift, bool ctrl, bool alt)
{
switch(key)
{
- case ' ':
+ case ' ': //Space
c->SetPaused();
break;
+ case KEY_TAB: //Tab
+ c->ChangeBrush();
+ break;
}
}