| 1 | /*************************************************************************** |
| 2 | systemstream.h - description |
| 3 | ------------------- |
| 4 | begin : Sat Sep 30 2000 |
| 5 | copyright : (C) 2000 by Waldemar Baraldi |
| 6 | email : [email protected] |
| 7 | ***************************************************************************/ |
| 8 | |
| 9 | /*************************************************************************** |
| 10 | * * |
| 11 | * This program is free software; you can redistribute it and/or modify * |
| 12 | * it under the terms of the GNU General Public License as published by * |
| 13 | * the Free Software Foundation; either version 2 of the License, or * |
| 14 | * (at your option) any later version. * |
| 15 | * * |
| 16 | ***************************************************************************/ |
| 17 | |
| 18 | #ifndef SYSTEM_STREAM_H |
| 19 | #define SYSTEM_STREAM_H |
| 20 | |
| 21 | #include "eventstream.h" |
| 22 | #include "SDL.h" |
| 23 | |
| 24 | class SystemStream : public EventStream{ |
| 25 | |
| 26 | public: |
| 27 | |
| 28 | /** En un futuro no muy lejano esto debiera poder sobrescribirse.*/ |
| 29 | |
| 30 | SystemStream(){ |
| 31 | emt[0]=(struct EMT){SDLK_UP, UP}; |
| 32 | emt[1]=(struct EMT){SDLK_DOWN, DOWN}; |
| 33 | emt[2]=(struct EMT){SDLK_LEFT, LEFT}; |
| 34 | emt[3]=(struct EMT){SDLK_RIGHT, RIGHT}; |
| 35 | emt[4]=(struct EMT){SDLK_SPACE, HIT}; |
| 36 | emt[5]=(struct EMT){SDLK_ESCAPE, BACK}; |
| 37 | emt[6]=(struct EMT){SDLK_RETURN, GO}; |
| 38 | npairs=7; |
| 39 | } |
| 40 | }; |
| 41 | |
| 42 | #endif |
| 43 |