| 1 | /*************************************************************************** |
| 2 | eventmanager.h - description |
| 3 | ------------------- |
| 4 | begin : Fri Sep 15 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 EVENT_MANAGER_H |
| 19 | #define EVENT_MANAGER_Hcxx . . $ `src/eventmanager.h:19:9`! |
| 20 | |
| 21 | #include "object.h"cxx . . $ `<file>/src/object.h`/ |
| 22 | #include "SDL.h" |
| 23 | #include "list.h"cxx . . $ `<file>/src/list.h`/ |
| 24 | #include "eventstream.h"cxx . . $ `<file>/src/eventstream.h`/ |
| 25 | |
| 26 | class EventManagercxx . . $ EventManager#: public Objectcxx . . $ Object#{ |
| 27 | |
| 28 | public: |
| 29 | |
| 30 | EventManagercxx . . $ EventManager#EventManager(49f6e7a06ebc5aa8).(); |
| 31 | ~cxx . . $ EventManager#`~EventManager`(ced63f7c635d850d).EventManagercxx . . $ EventManager#(); |
| 32 | |
| 33 | void addStreamcxx . . $ EventManager#addStream(bd52e798fbdcdd33).(EventStreamcxx . . $ EventStream# * s); |
| 34 | |
| 35 | /** Los streams no son liberados ni al hacer |
| 36 | remove ni en el destructor.*/ |
| 37 | void removeStreamcxx . . $ EventManager#removeStream(bd52e798fbdcdd33).(EventStreamcxx . . $ EventStream# * s); |
| 38 | |
| 39 | /** Pasa todos los eventos de los dispositivos |
| 40 | a los streams. Si no hubo eventos en los dispositivos: |
| 41 | si wait=true espera hasta que pueda pasar uno, |
| 42 | si wait=false retorna.*/ |
| 43 | |
| 44 | void pumpEventscxx . . $ EventManager#pumpEvents(b45ddcbc8423892c).(bool wait=false); |
| 45 | |
| 46 | protected: |
| 47 | |
| 48 | Listcxx . . $ List# * lista_streamscxx . . $ EventManager#lista_streams.; |
| 49 | }; |
| 50 | #endif |
| 51 |