Changeset 4836 in orxonox.OLD for orxonox/trunk/src/lib/event
- Timestamp:
- Jul 12, 2005, 12:33:16 AM (19 years ago)
- Location:
- orxonox/trunk/src/lib/event
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/event/event.cc
r4457 r4836 22 22 23 23 /** 24 \briefstandard constructor24 * standard constructor 25 25 */ 26 26 Event::Event () … … 32 32 33 33 /** 34 \briefstandard deconstructor34 * standard deconstructor 35 35 36 36 */ -
orxonox/trunk/src/lib/event/event.h
r4782 r4836 1 1 /*! 2 2 \file event.h 3 \briefan abstract event3 * an abstract event 4 4 5 5 */ -
orxonox/trunk/src/lib/event/event_def.h
r4782 r4836 1 1 /*! 2 2 \file event_def.h 3 \briefsome central definitions3 * some central definitions 4 4 5 5 */ -
orxonox/trunk/src/lib/event/event_handler.cc
r4817 r4836 29 29 30 30 /** 31 \briefstandard constructor31 * standard constructor 32 32 */ 33 33 EventHandler::EventHandler () … … 52 52 53 53 /** 54 \briefthe singleton reference to this class54 * the singleton reference to this class 55 55 */ 56 56 EventHandler* EventHandler::singletonRef = NULL; … … 58 58 59 59 /** 60 \briefstandard deconstructor60 * standard deconstructor 61 61 62 62 */ … … 80 80 81 81 /** 82 \briefinitializes the event handler82 * initializes the event handler 83 83 84 84 this has to be called before the use of the event handler … … 92 92 93 93 /** 94 \briefset the state of the event handler95 \param state: to which the event handler shall change94 * set the state of the event handler 95 * @param state: to which the event handler shall change 96 96 */ 97 97 void EventHandler::setState(elState state) … … 102 102 103 103 /** 104 \briefsubscribe to an event105 \param el: the event listener that wants to subscribe itself, the listener that will be called when the evetn occures106 \param state: for which the listener wants to receive events107 \param eventType: the event type that wants to be listened for.104 * subscribe to an event 105 * @param el: the event listener that wants to subscribe itself, the listener that will be called when the evetn occures 106 * @param state: for which the listener wants to receive events 107 * @param eventType: the event type that wants to be listened for. 108 108 109 109 This is one of the most important function of the EventHandler. If you would like to subscribe for more … … 111 111 state = ES_ALL, which will subscribe your listener for all states together. 112 112 * 113 * \todo this can also be done with the & operator, and checking for states, just set the esState to 1,2,4,8, and then 15 is equal to ES_ALL113 * @todo this can also be done with the & operator, and checking for states, just set the esState to 1,2,4,8, and then 15 is equal to ES_ALL 114 114 */ 115 115 void EventHandler::subscribe(EventListener* el, elState state, int eventType) … … 135 135 136 136 /** 137 \briefunsubscribe from the EventHandler138 \param state: the stat in which it has been subscribed139 \param eventType: the event, that shall be unsubscribed137 * unsubscribe from the EventHandler 138 * @param state: the stat in which it has been subscribed 139 * @param eventType: the event, that shall be unsubscribed 140 140 141 141 if you want to unsubscribe an event listener from all subscribed events, just use the … … 150 150 151 151 /** 152 \briefunsubscribe all events from a specific listener153 \param el: the listener that wants to unsubscribe itself154 \param state: the state in which the events shall be unsubscribed152 * unsubscribe all events from a specific listener 153 * @param el: the listener that wants to unsubscribe itself 154 * @param state: the state in which the events shall be unsubscribed 155 155 156 156 */ … … 182 182 183 183 /** 184 \briefflush all registered events185 \param state: a specific state184 * flush all registered events 185 * @param state: a specific state 186 186 */ 187 187 void EventHandler::flush(elState state) … … 208 208 209 209 /** 210 \briefcore function of event handler: receives all events from SDL210 * core function of event handler: receives all events from SDL 211 211 212 212 The event from the SDL framework are collected here and distributed to all listeners. -
orxonox/trunk/src/lib/event/event_handler.h
r4834 r4836 1 1 /*! 2 2 \file event_handler.h 3 \briefDefinition of the EventHandler3 * Definition of the EventHandler 4 4 5 5 */ … … 21 21 public: 22 22 virtual ~EventHandler(); 23 /** \returns a Pointer to the only object of this Class */23 /** @returns a Pointer to the only object of this Class */ 24 24 inline static EventHandler* getInstance() { if (!singletonRef) singletonRef = new EventHandler(); return singletonRef; }; 25 25 void init(); -
orxonox/trunk/src/lib/event/event_listener.cc
r4817 r4836 23 23 24 24 /** 25 \briefstandard constructor25 * standard constructor 26 26 */ 27 27 EventListener::EventListener () 28 28 { 29 29 this->setClassID(CL_EVENT_LISTENER, "EventListener"); 30 30 } 31 31 32 32 33 33 /** 34 \brief standard deconstructor 35 34 * standard deconstructor 36 35 */ 37 36 EventListener::~EventListener () -
orxonox/trunk/src/lib/event/event_listener.h
r4457 r4836 1 1 /*! 2 2 \file event_listener.h 3 \briefDefinition of an event listener base class3 * Definition of an event listener base class 4 4 5 5 */ … … 21 21 22 22 /** 23 \briefabstract function that processes events from the handler24 \param event: the event23 * abstract function that processes events from the handler 24 * @param event: the event 25 25 */ 26 26 virtual void process(const Event &event) = NULL; -
orxonox/trunk/src/lib/event/key_mapper.cc
r4834 r4836 92 92 93 93 /** 94 \briefstandard constructor94 * standard constructor 95 95 */ 96 96 KeyMapper::KeyMapper () … … 101 101 102 102 /** 103 \briefstandard deconstructor103 * standard deconstructor 104 104 */ 105 105 KeyMapper::~KeyMapper () … … 109 109 110 110 /** 111 \briefloads new key bindings from a file112 \param filename: The path and name of the file to load the bindings from111 * loads new key bindings from a file 112 * @param filename: The path and name of the file to load the bindings from 113 113 */ 114 114 void KeyMapper::loadKeyBindings (const char* fileName) … … 189 189 190 190 /** 191 \briefthis function looks up name to key index192 \param the name of the button191 * this function looks up name to key index 192 * @param the name of the button 193 193 */ 194 194 int* KeyMapper::nameToIndex (char* name) … … 212 212 213 213 /** 214 \briefthe function maps name to key ids215 \param name of the key216 \param id of the key214 * the function maps name to key ids 215 * @param name of the key 216 * @param id of the key 217 217 */ 218 218 void KeyMapper::mapKeys(char* name, int keyID) … … 231 231 232 232 /** 233 \briefthis function gives some debug information about the key mapper class233 * this function gives some debug information about the key mapper class 234 234 */ 235 235 void KeyMapper::debug() -
orxonox/trunk/src/lib/event/key_mapper.h
r4457 r4836 1 1 /*! 2 2 \file key_mapper.h 3 \briefa construct to map player defined keys to SDL keys3 * a construct to map player defined keys to SDL keys 4 4 5 5 */ -
orxonox/trunk/src/lib/event/key_names.h
r4780 r4836 1 1 /*! 2 2 \file keynames.h 3 \briefKey/button naming functions3 * Key/button naming functions 4 4 5 5 Converts strings to SDLK/SDL_BUTTON values and vice versa … … 9 9 10 10 /** 11 \briefconverts a button name string to a integer representing the corresponding SDL mouse button identifier12 \param name: the name of the mouse button13 \return an int containing the SDL identifier of the mouse button or -1 if the button name is not valid11 * converts a button name string to a integer representing the corresponding SDL mouse button identifier 12 * @param name: the name of the mouse button 13 * @return an int containing the SDL identifier of the mouse button or -1 if the button name is not valid 14 14 */ 15 15 int buttonnameToSDLB(const char* name); 16 16 17 17 /** 18 \briefconverst a SDL mouse button identifier to a name string19 \param button: an SDL mouse button identifier20 \return a pointer to a string containing the name of the mouse button18 * converst a SDL mouse button identifier to a name string 19 * @param button: an SDL mouse button identifier 20 * @return a pointer to a string containing the name of the mouse button 21 21 */ 22 22 char* SDLBToButtonname( int button); 23 23 24 24 /** 25 \briefconverts a key name string to a integer representing the corresponding SDLK sym26 \param name: the name of the key27 \return the SDLK sym of the named key or -1 if the key name is not valid25 * converts a key name string to a integer representing the corresponding SDLK sym 26 * @param name: the name of the key 27 * @return the SDLK sym of the named key or -1 if the key name is not valid 28 28 */ 29 29 int keynameToSDLK(const char* name); 30 30 31 31 /** 32 \briefconverts an SDLK sym to a name string33 \param key: the SDLK sym34 \return a pointer to a string containig the name of the key32 * converts an SDLK sym to a name string 33 * @param key: the SDLK sym 34 * @return a pointer to a string containig the name of the key 35 35 */ 36 36 char* SDLKToKeyname( int key);
Note: See TracChangeset
for help on using the changeset viewer.