This template class enables you to implement generic key gestures recognition.
More...
template<typename TDerivedClass, typename TKeyGesture>
class kanzi::KeyInputGestureDetector< TDerivedClass, TKeyGesture >
This template class enables you to implement generic key gestures recognition.
Kanzi supports these types of key gestures:
- Partial key-pressed gesture is when Kanzi recognizes a key event that contains only a part of the elements that compose that gesture.
- Full key-pressed gesture occurs when Kanzi recognizes a key event that contains all the elements that compose that gesture.
- Key-released gesture occurs when Kanzi recognizes the release of one of the elements that compose that gesture.
- Key-repeat gesture occurs when Kanzi does not detect a key-released gesture.
To support all of these gestures, use this template class in combination with the KeyRepeatConceptImpl template class.
- Template Parameters
-
| TDerivedClass | The derived key gesture detector class. Your class must have these methods:
- void notifyPartialKeyPressGesture(KeyInputConcept&)
- void notifyKeyPressGesture(KeyInputConcept&)
- void notifyKeyReleaseGesture(KeyInputConcept&)
|
| TKeyGesture | The class that defines the key gesture. The class must have these methods:
- bool isGrabbed() const
- void setGrabbed()
- CapsLockState getCapsLock() const
- pair<LogicalKey, KeyModifier> getKey() const
|
- Since
- Kanzi 3.9.0