From 6c9d984c054d634d2873fa3a74c41d2436f7fd53 Mon Sep 17 00:00:00 2001 From: Joshua Rahm Date: Mon, 28 Apr 2014 14:40:02 -0600 Subject: added ability to get control of cursor with c. Updated goliath map --- Resources.hs | 4 ++++ maps/goliath_height.png | Bin 15565 -> 27219 bytes maps/goliath_terrain.png | Bin 2849 -> 3414 bytes 3 files changed, 4 insertions(+) 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 diff --git a/maps/goliath_height.png b/maps/goliath_height.png index 557922b..5e982e8 100644 Binary files a/maps/goliath_height.png and b/maps/goliath_height.png differ diff --git a/maps/goliath_terrain.png b/maps/goliath_terrain.png index e3eb9ab..5c288bd 100644 Binary files a/maps/goliath_terrain.png and b/maps/goliath_terrain.png differ -- cgit