The KeyMapEventFilter provides key translation in Kanzi. More...
#include <kanzi/core.ui/input/key_map_event_filter.hpp>
Public Member Functions | |
void | gatherEvents (EventQueue &queue) override |
Overrides EventSource::gatherEvents(). | |
optional< NativeEventHandle > | getNativeEventHandle () const noexcept override |
Overrides EventSource::getNativeEventHandle(). | |
EventSourceSharedPtr | getWrappedEventSource () const override |
Overrides EventSourceDecorator::getWrappedEventSource(). | |
KeyMapEventFilter (EventSourceProperties::KeyMapCollection keyMap, EventSourceSharedPtr eventSource) | |
Constructor. | |
Public Member Functions inherited from kanzi::EventSource | |
virtual | ~EventSource ()=default |
Destructor. | |
Public Member Functions inherited from kanzi::EventSourceDecorator | |
virtual | ~EventSourceDecorator ()=default |
Destructor. | |
The KeyMapEventFilter provides key translation in Kanzi.
It scans the events gathered from the event source it extends, and translates them using a key translation set. You can use this in combination with event sources that provide key events.
To create an application that is based on key messages with LogicalKey argument only, when creating the key map event filter, pass the key conversion map as argument, followed by the event source to extend.
|
inlineexplicit |
Constructor.
|
overridevirtual |
Overrides EventSource::gatherEvents().
Implements kanzi::EventSource.
|
inlineoverridevirtualnoexcept |
Overrides EventSource::getNativeEventHandle().
Implements kanzi::EventSource.
|
inlineoverridevirtual |
Overrides EventSourceDecorator::getWrappedEventSource().
Implements kanzi::EventSourceDecorator.