me empecine con el makefile.... make stats :)
[seni.git] / src / events.cpp
blobf71f20f38dca15bb5e9fa4ea90b6a93fef3b3337
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 0;