Input manager. More...
#include <user/ui/input_manager/kzu_input_manager.h>
Public Member Functions | |
KzuInputManager (const struct KzcMemoryManager *memoryManager) | |
Create an input manager. More... | |
virtual | ~KzuInputManager () |
kzsError | processInputEvent (const struct KzsEvent *inputEvent, struct KzuMessageDispatcher *messageDispatcher, const Node2D *layer) |
Process a low level input event. More... | |
void | captureTouch (Node *objectNode) |
Captures raw touch events to specified object node. More... | |
Node * | getTouchCaptureObject () const |
Returns the raw touch event capturer node. More... | |
kzsError | removeManipulator (InputManipulator *inputManipulator) |
Remove input manipulator dependencies from input manager. More... | |
kzsError | setFocus (Node *objectNode) |
Attempts to set focus to an object. More... | |
Node * | getFocus () const |
Gets the focus object. More... | |
kzsError | notifyManipulatorStateChange (InputManipulator *inputManipulator) |
Notification of manipulator state change. More... | |
Public Attributes | |
kzBool | isInEventHandling |
Processes key event. More... | |
struct KzcDynamicArray * | attachedManipulators |
Attached input manipulators. More... | |
Node * | touchCapture |
Touch capture object. More... | |
Node * | focus |
Focus object. More... | |
Input manager.
kanzi::KzuInputManager::KzuInputManager | ( | const struct KzcMemoryManager * | memoryManager | ) |
Create an input manager.
|
virtual |
kzsError kanzi::KzuInputManager::processInputEvent | ( | const struct KzsEvent * | inputEvent, |
struct KzuMessageDispatcher * | messageDispatcher, | ||
const Node2D * | layer | ||
) |
Process a low level input event.
void kanzi::KzuInputManager::captureTouch | ( | Node * | objectNode | ) |
Captures raw touch events to specified object node.
Pass KZ_NULL to release capture. Raw touch capture has no effect on manipulators.
Node* kanzi::KzuInputManager::getTouchCaptureObject | ( | ) | const |
Returns the raw touch event capturer node.
Returns KZ_NULL if no capturer has been set.
kzsError kanzi::KzuInputManager::removeManipulator | ( | InputManipulator * | inputManipulator | ) |
Remove input manipulator dependencies from input manager.
Node* kanzi::KzuInputManager::getFocus | ( | ) | const |
Gets the focus object.
kzsError kanzi::KzuInputManager::notifyManipulatorStateChange | ( | InputManipulator * | inputManipulator | ) |
Notification of manipulator state change.
kzBool kanzi::KzuInputManager::isInEventHandling |
Processes key event.
Is the input manager in event handling currently.
struct KzcDynamicArray* kanzi::KzuInputManager::attachedManipulators |
Attached input manipulators.
<KzuInputManipulator>.
Node* kanzi::KzuInputManager::touchCapture |
Touch capture object.
Node* kanzi::KzuInputManager::focus |
Focus object.