2 Copyright (C) 2003, 2010 - Wolfire Games
3 Copyright (C) 2010 - MCMic
5 This file is part of Lugaru.
7 Lugaru is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License
9 as published by the Free Software Foundation; either version 2
10 of the License, or (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16 See the GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 /**> HEADER FILES <**/
30 /**> CONSTANT DECLARATIONS <**/
31 #define MOUSEBUTTON1 SDLK_LAST+SDL_BUTTON_LEFT
32 #define MOUSEBUTTON2 SDLK_LAST+SDL_BUTTON_RIGHT
34 /**> FUNCTION PROTOTYPES <**/
38 static bool isKeyDown(int k);
39 static bool isKeyPressed(int k);
40 static const char* keyToChar(unsigned short which);
41 static void setKeyFor(Game* g);
42 static unsigned short CharToKey(const char* which);
43 static Boolean MouseClicked();