A top-level controller that dispatches key events to registered sub-controllers.
More...
A top-level controller that dispatches key events to registered sub-controllers.
- See also
- KeyEvent, MouseController, BasicKeyController
Definition at line 142 of file KeyController.h.
◆ addController()
Adds a sub-controller identified by a UUID.
- Parameters
-
| [in] | id | The unique identifier for the controller. |
| [in] | controller | The key controller to add. |
◆ controllers()
Returns all registered sub-controllers.
- Returns
- A buffer containing pointers to all registered KeyControllerBase instances.
◆ DefaultKeyController()
◆ hasController()
| bool KeyController::hasController |
( |
UUID | id | ) |
const |
Checks whether a sub-controller with the given UUID is registered.
- Parameters
-
| [in] | id | The unique identifier to check. |
- Returns
- True if a controller with the given ID exists, false otherwise.
◆ processKeyEvent()
Dispatches a key event to all registered sub-controllers.
- Parameters
-
| [in] | event | The key event to process. |
| [in] | lookup | The design object lookup context. |
| [in] | camera | The active camera context. |
- Returns
- True if any sub-controller handled the event, false otherwise.
Implements KeyControllerBase.
◆ removeController()
| void KeyController::removeController |
( |
UUID | id | ) |
|
Removes a sub-controller identified by a UUID.
- Parameters
-
| [in] | id | The unique identifier of the controller to remove. |
The documentation for this class was generated from the following file: