1 /* 2 * IceBreaker 3 * Copyright (c) 2000-2002 Matthew Miller <mattdm@mattdm.org> and 4 * Enrico Tassi <gareuselesinge@infinito.it> 5 * 6 * <http://www.mattdm.org/icebreaker/> 7 * 8 * This program is free software; you can redistribute it and/or modify it 9 * under the terms of the GNU General Public License as published by the Free 10 * Software Foundation; either version 2 of the License, or (at your option) 11 * any later version. 12 * 13 * This program is distributed in the hope that it will be useful, but 14 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 15 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 16 * for more details. 17 * 18 * You should have received a copy of the GNU General Public License along 19 * with this program; if not, write to the Free Software Foundation, Inc., 59 20 * Temple Place, Suite 330, Boston, MA 02111-1307 USA 21 * 22 */ 23 24 #ifndef EVENT_H 25 #define EVENT_H 26 27 typedef enum { KEYNONE, KEYCANCEL, KEYMENU, KEYPAUSE, KEYHELP, 28 KEYSTARTLINE, KEYSWITCHLINE, 29 KEYMOVELEFT, KEYMOVERIGHT, KEYMOVEUP, KEYMOVEDOWN, 30 KEYMOVELEFTUP, KEYMOVERIGHTUP, KEYMOVELEFTDOWN, KEYMOVERIGHTDOWN 31 } KeyboardActionType; 32 33 34 35 extern int pollevent(SDL_Event* e); 36 extern Uint8 getmousestate(int* mx, int* my); 37 extern void jumpmouse(int mx, int my); 38 extern KeyboardActionType translatekeyevent(SDL_Event* e); 39 40 41 42 #endif // EVENT_H 43