Changeset 7919 in orxonox.OLD for trunk/src/lib/event/event_handler.h
- Timestamp:
- May 28, 2006, 3:48:13 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/event/event_handler.h
r7868 r7919 11 11 #include "key_mapper.h" 12 12 #include "event_def.h" 13 #include "event.h" 13 14 #include <stack> 14 15 #include <vector> … … 26 27 void init(); 27 28 28 /** @param state: to which the event handler shall change */ 29 inline void setState(elState state) { this->state = state; }; 29 void setState(elState state); 30 30 /** @returns the current state */ 31 31 inline elState getState() const { return this->state; }; … … 42 42 43 43 44 void withUNICODE( bool enableUNICODE);44 void withUNICODE(elState state, bool enableUNICODE); 45 45 void grabEvents(bool grabEvents); 46 46 bool grabbedEvents() const { return this->eventsGrabbed; }; 47 47 48 void process(); 48 void process() const; 49 void dispachEvent(elState state, const Event& event) const; 49 50 50 51 static int eventFilter(const SDL_Event *event); … … 53 54 private: 54 55 EventHandler(); 56 57 bool findListener(std::vector<EventListener*>::iterator* it, elState state, int eventType, EventListener* listener); 55 58 56 59 private: … … 62 65 KeyMapper keyMapper; //!< reference to the key mapper. 63 66 64 bool bUNICODE ;//!< If unicode should be enabled.67 bool bUNICODE[ES_NUMBER]; //!< If unicode should be enabled. 65 68 bool eventsGrabbed; //!< If the events should be grabbed 66 69 };
Note: See TracChangeset
for help on using the changeset viewer.