Dali 3D User Interface Engine
Namespaces | Classes | Functions | Variables
Dali::Internal::Adaptor::KeyLookup Namespace Reference

Implementation of the Key matching. More...

Namespaces

namespace  anonymous_namespace{key-impl.cpp}
 

Classes

struct  KeyLookup
 

Functions

bool IsKey (const Dali::KeyEvent &keyEvent, Dali::KEY daliKey)
 Check if a key event is for a specific DALI KEY. More...
 
bool IsDeviceButton (const char *keyName)
 Check if a the given key name string is a button on the device itself. More...
 
const char * GetKeyName (Dali::KEY daliKey)
 Get a key name from a dali key code. More...
 

Variables

KeyLookup KeyLookupTable []
 
const std::size_t KEY_LOOKUP_COUNT
 

Detailed Description

Implementation of the Key matching.

Function Documentation

const char * Dali::Internal::Adaptor::KeyLookup::GetKeyName ( Dali::KEY  daliKey)

Get a key name from a dali key code.

Parameters
daliKeyThe dali key code
Returns
The key name. NULL if the daliKey does not exist in the supported key lookup table.

Definition at line 125 of file key-impl.cpp.

References Dali::Internal::Adaptor::KeyLookup::anonymous_namespace{key-impl.cpp}::KeyMap::GetKeyName(), and Dali::Internal::Adaptor::KeyLookup::anonymous_namespace{key-impl.cpp}::globalKeyLookup.

Here is the call graph for this function:

bool Dali::Internal::Adaptor::KeyLookup::IsDeviceButton ( const char *  keyName)

Check if a the given key name string is a button on the device itself.

Parameters
keyNameA pointer to the key name
Returns
true if the key is matched, false if not

Definition at line 120 of file key-impl.cpp.

References Dali::Internal::Adaptor::KeyLookup::anonymous_namespace{key-impl.cpp}::globalKeyLookup, and Dali::Internal::Adaptor::KeyLookup::anonymous_namespace{key-impl.cpp}::KeyMap::IsDeviceButton().

Here is the call graph for this function:

bool Dali::Internal::Adaptor::KeyLookup::IsKey ( const Dali::KeyEvent keyEvent,
Dali::KEY  daliKey 
)

Check if a key event is for a specific DALI KEY.

.0

Parameters
keyEventreference to a keyEvent structure
daliKeydali key enum
Returns
true if the key is matched, false if not

Definition at line 114 of file key-impl.cpp.

References Dali::Internal::Adaptor::KeyLookup::anonymous_namespace{key-impl.cpp}::KeyMap::GetDaliKeyEnum(), Dali::Internal::Adaptor::KeyLookup::anonymous_namespace{key-impl.cpp}::globalKeyLookup, and Dali::KeyEvent::keyPressedName.

Referenced by Dali::IsKey().

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const std::size_t Dali::Internal::Adaptor::KeyLookup::KEY_LOOKUP_COUNT
KeyLookup Dali::Internal::Adaptor::KeyLookup::KeyLookupTable[]
Dali Docs Home
Read more about Dali