Mercurial > fife-parpg
comparison engine/core/eventchannel/mouse/ec_imousecontroller.h @ 428:a1884665aa95
Added the ability to add an event listener to the front of the event listener deque in the event manager. fixes[t:454]
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Mon, 22 Feb 2010 21:23:01 +0000 |
parents | 90005975cdbb |
children |
comparison
equal
deleted
inserted
replaced
427:68aa65e5bd9c | 428:a1884665aa95 |
---|---|
34 // Second block: files included from the same folder | 34 // Second block: files included from the same folder |
35 // | 35 // |
36 | 36 |
37 namespace FIFE { | 37 namespace FIFE { |
38 class IMouseListener; | 38 class IMouseListener; |
39 | 39 |
40 /** Controller provides a way to receive events from the system | 40 /** Controller provides a way to receive events from the system |
41 * Using this interface, clients can subscribe themselves to receive events | 41 * Using this interface, clients can subscribe themselves to receive events |
42 */ | 42 */ |
43 class IMouseController { | 43 class IMouseController { |
44 public: | 44 public: |
45 | 45 |
46 /** Adds a listener to the controller | 46 /** Adds a listener to the back of the listener deque |
47 * Listener will be notified via the corresponding events | 47 * Listener will be notified via the corresponding events |
48 * @param listener listener to add | 48 * @param listener listener to add |
49 */ | 49 */ |
50 virtual void addMouseListener(IMouseListener* listener) = 0; | 50 virtual void addMouseListener(IMouseListener* listener) = 0; |
51 | |
52 /** Adds a listener to the front of the listener deque | |
53 * Listener will be notified via the corresponding events | |
54 * @param listener listener to add | |
55 */ | |
56 virtual void addMouseListenerFront(IMouseListener* listener) = 0; | |
51 | 57 |
52 /** Removes an added listener from the controller. | 58 /** Removes an added listener from the controller. |
53 * Listener will not be notified anymore via the corresponding events | 59 * Listener will not be notified anymore via the corresponding events |
54 * @param listener listener to remove | 60 * @param listener listener to remove |
55 */ | 61 */ |