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(). More... | |
optional< NativeEventHandle > | getNativeEventHandle () const noexcept override |
Overrides EventSource::getNativeEventHandle(). More... | |
EventSourceSharedPtr | getWrappedEventSource () const override |
Overrides EventSourceDecorator::getWrappedEventSource(). More... | |
KeyMapEventFilter (EventSourceProperties::KeyMapCollection keyMap, EventSourceSharedPtr eventSource) | |
Constructor. More... | |
Public Member Functions inherited from kanzi::EventSource | |
virtual | ~EventSource ()=default |
Destructor. More... | |
Public Member Functions inherited from kanzi::EventSourceDecorator | |
virtual | ~EventSourceDecorator ()=default |
Destructor. More... | |
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.