fix al problema con "const char *", parece que en gcc 4.2.3 andaba, en 4.5.2 no XD
[seni.git] / src / events.cpp
blob4681bb7474ff90c7052d73ae6e19b2cc5779bb60
1 /*SENI, Search for Extra Nibiru Intelligence*/
3 /*
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
19 Copyright SSW Team 2010
22 #include "all.hpp"
24 void keyboardevent(SDL_Event *ev, Engine *e)
26 if(ev->key.type == SDL_KEYUP && ev->key.keysym.sym == SDLK_ESCAPE)
27 e->quit();
30 int exit_event(SDL_Event *se, Engine *e, Menu *m, Option *o)
32 e->quit();
33 return OPTION_RETURN;