Input manager. More...
#include <kanzi/core.ui/input/kzu_input_manager.h>
Public Types | |
typedef vector< KzuInputTouchPoint > | TouchPointVector |
Container for touch points. More... | |
typedef TouchPointVector::const_iterator | TouchPointVectorConstIterator |
typedef TouchPointVector::iterator | TouchPointVectorIterator |
Public Member Functions | |
KzuInputManager (const struct KzcMemoryManager *memoryManager) | |
Create an input manager. More... | |
virtual | ~KzuInputManager () |
void | processEvents (const KzsEventQueue *queue, KzuMessageDispatcher *messageDispatcher, Node2D *layer) |
kzsError | processInputEvent (const struct KzsEvent *inputEvent, struct KzuMessageDispatcher *messageDispatcher, 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... | |
NodeSharedPtr | setFocus (NodeSharedPtr newFocusNode) |
Attempts to set focus to an object. More... | |
void | notifyNodeDetached (const Node &node) |
NodeSharedPtr | getFocus () const |
Gets currently focused node. More... | |
kzsError | notifyManipulatorStateChange (InputManipulator *inputManipulator) |
Notification of manipulator state change. More... | |
Public Attributes | |
kzBool | isInEventHandling |
Is the input manager in event handling currently. More... | |
struct KzcDynamicArray * | attachedManipulators |
Attached input manipulators. More... | |
Node * | touchCapture |
Touch capture object. More... | |
NodeWeakPtr | focus |
Focus object. More... | |
TouchPointVector | m_touchPoints |
All active touch points. More... | |
Input manager.
typedef vector<KzuInputTouchPoint> kanzi::KzuInputManager::TouchPointVector |
Container for touch points.
typedef TouchPointVector::const_iterator kanzi::KzuInputManager::TouchPointVectorConstIterator |
typedef TouchPointVector::iterator kanzi::KzuInputManager::TouchPointVectorIterator |
|
explicit |
Create an input manager.
|
virtual |
void kanzi::KzuInputManager::processEvents | ( | const KzsEventQueue * | queue, |
KzuMessageDispatcher * | messageDispatcher, | ||
Node2D * | layer | ||
) |
kzsError kanzi::KzuInputManager::processInputEvent | ( | const struct KzsEvent * | inputEvent, |
struct KzuMessageDispatcher * | messageDispatcher, | ||
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.
NodeSharedPtr kanzi::KzuInputManager::setFocus | ( | NodeSharedPtr | newFocusNode | ) |
Attempts to set focus to an object.
void kanzi::KzuInputManager::notifyNodeDetached | ( | const Node & | node | ) |
NodeSharedPtr kanzi::KzuInputManager::getFocus | ( | ) | const |
Gets currently focused node.
kzsError kanzi::KzuInputManager::notifyManipulatorStateChange | ( | InputManipulator * | inputManipulator | ) |
Notification of manipulator state change.
kzBool kanzi::KzuInputManager::isInEventHandling |
Is the input manager in event handling currently.
struct KzcDynamicArray* kanzi::KzuInputManager::attachedManipulators |
Attached input manipulators.
<KzuInputManipulator>.
Node* kanzi::KzuInputManager::touchCapture |
Touch capture object.
NodeWeakPtr kanzi::KzuInputManager::focus |
Focus object.
TouchPointVector kanzi::KzuInputManager::m_touchPoints |
All active touch points.