aboutsummaryrefslogtreecommitdiff
path: root/Resources.hs
diff options
context:
space:
mode:
authorJoshua Rahm <jrahm@Scipio.(none)>2014-04-28 14:40:02 -0600
committerJoshua Rahm <jrahm@Scipio.(none)>2014-04-28 14:40:02 -0600
commit6c9d984c054d634d2873fa3a74c41d2436f7fd53 (patch)
tree105686af3ec9267554f77c345c4ce9baf89be498 /Resources.hs
parent41d2402f004bd446c6c4975caa5211fd44d302f5 (diff)
downloadterralloc-6c9d984c054d634d2873fa3a74c41d2436f7fd53.tar.gz
terralloc-6c9d984c054d634d2873fa3a74c41d2436f7fd53.tar.bz2
terralloc-6c9d984c054d634d2873fa3a74c41d2436f7fd53.zip
added ability to get control of cursor with c. Updated goliath map
Diffstat (limited to 'Resources.hs')
-rw-r--r--Resources.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Resources.hs b/Resources.hs
index e5cb528..c0a947c 100644
--- a/Resources.hs
+++ b/Resources.hs
@@ -261,6 +261,10 @@ eventHandle event res = do
SDL.showCursor False
SDL.grabInput True
return ret
+ KeyUp (Keysym SDLK_c _ _) -> do
+ SDL.showCursor True
+ SDL.grabInput False
+ return res
KeyUp (Keysym SDLK_g _ _) -> do
SDL.showCursor False
SDL.grabInput True