InputManager converts the events from the given event queue into input specific messages.
More...
#include <kanzi/core.ui/input/input_manager.hpp>
InputManager converts the events from the given event queue into input specific messages.
The events supported are key, touch, and mouse pointer events. The key events are dispatched through Keyboard::KeyDownMessage and Keyboard::KeyUpMessage. The touch and pointer events are unified into press, change and release messages, and forwarded to InputManipulators, which in turn handles the input and dispatch those through proprietary messages. The input manipulators are gathered automatically from the node or its children passed as argument to the processEvents() method.
- See also
- Keyboard, InputManipulator
kanzi::InputManager::InputManager |
( |
Domain * |
domain | ) |
|
|
explicit |
Create an input manager.
- Parameters
-
domain | The domain that owns the input manager. |
virtual kanzi::InputManager::~InputManager |
( |
| ) |
|
|
virtual |
FocusManager* kanzi::InputManager::getFocusManager |
( |
| ) |
const |
Returns the instance of the focus manager.
- Returns
- Instance of the focus manager.
void kanzi::InputManager::processEvents |
( |
const struct KzsEventQueue * |
queue, |
|
|
Node2D * |
node |
|
) |
| |
Processes a queue of input events.
- Parameters
-
queue | Event queue that holds events that are processed. |
node | A node whose subtree can receive events that are processed. |
void kanzi::InputManager::notifyNodeDetached |
( |
Node & |
node | ) |
|
Node notifies the input manager that Kanzi is detaching it from the scene graph.
- Parameters
-
node | The node which is detached. |
The documentation for this class was generated from the following file: