#include <standard_input_handler.h>
|
|
typedef std::vector< std::pair< ID, KeyboardCallbackBase * > > | KeyboardHandlerList |
| | Registered keyboard callbacks paired with their unique IDs.
|
| |
|
typedef std::vector< std::pair< ID, MouseCallbackBase * > > | MouseHandlerList |
| | Registered mouse callbacks paired with their unique IDs.
|
| |
|
|
DisplayFrame * | _displayFrame |
| | The display frame that events are routed through.
|
| |
|
ID | _nextID |
| | The ID that will be handed out to the next registered handler.
|
| |
|
KeyboardHandlerList | _globalKeyboardHandlers |
| | The registered global keyboard handlers.
|
| |
|
MouseHandlerList | _globalMouseHandlers |
| | The registered global mouse handlers.
|
| |
|
Public Types inherited from InputHandler |
|
typedef unsigned int | ID |
| | Type for unique identifiers.
|
| |
Standard implementation of InputHandler that provides:
◆ StandardInputHandler()
◆ HandleInput()
Handle the event
- Parameters
-
- Returns
- The object that handled the event, or NULL if no object handled the event
Implements InputHandler.
◆ RegisterGlobalKeyboardHandler()
Register a global keyboard handler
- Parameters
-
| callback | The callback to call when a keyboard event occurs (ownership transferred) |
- Returns
- Unique ID for unregistering
Implements InputHandler.
◆ RegisterGlobalMouseHandler()
Register a global mouse handler
- Parameters
-
| callback | The callback to call when a mouse event occurs (ownership transferred) |
- Returns
- Unique ID for unregistering
Implements InputHandler.
◆ UnregisterGlobalKeyboardHandler()
| void UnregisterGlobalKeyboardHandler |
( |
ID |
id | ) |
|
|
overridevirtual |
Unregister a global keyboard handler
- Parameters
-
| id | The unique identifier returned from RegisterGlobalKeyboardHandler |
Implements InputHandler.
◆ UnregisterGlobalMouseHandler()
| void UnregisterGlobalMouseHandler |
( |
ID |
id | ) |
|
|
overridevirtual |
Unregister a global mouse handler
- Parameters
-
| id | The unique identifier returned from RegisterGlobalMouseHandler |
Implements InputHandler.
The documentation for this class was generated from the following file: