All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
kanzi::KzuInputManager Struct Reference

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...
 
NodegetTouchCaptureObject () 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...
 
NodegetFocus () 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 KzcDynamicArrayattachedManipulators
 Attached input manipulators. More...
 
NodetouchCapture
 Touch capture object. More...
 
Nodefocus
 Focus object. More...
 

Detailed Description

Input manager.

Constructor & Destructor Documentation

kanzi::KzuInputManager::KzuInputManager ( const struct KzcMemoryManager memoryManager)

Create an input manager.

virtual kanzi::KzuInputManager::~KzuInputManager ( )
virtual

Member Function Documentation

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.

kzsError kanzi::KzuInputManager::setFocus ( Node objectNode)

Attempts to set focus to an object.

Node* kanzi::KzuInputManager::getFocus ( ) const

Gets the focus object.

kzsError kanzi::KzuInputManager::notifyManipulatorStateChange ( InputManipulator inputManipulator)

Notification of manipulator state change.

Member Data Documentation

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.


The documentation for this struct was generated from the following file: