#include <RoboticsPlugin/Include/ImFusion/Robotics/IO/KeyboardEventsReceiver.h>
The class captures and forwards all the events coming from the keyboard (keys pressed, keys released, ..). and can be used to design tracking streams that are controller by the keyboards keys.
More...
The class captures and forwards all the events coming from the keyboard (keys pressed, keys released, ..). and can be used to design tracking streams that are controller by the keyboards keys.
|
|
Signal< int > | signalKeyPressed |
| | The signal emitted when a key is pressed, reporting the id of the pressed keys on the keyboard.
|
| |
|
Signal< int > | signalKeyReleased |
| | The signal emitted when a key is released, reporting the id of the released key on the keyboard.
|
| |
|
|
bool | eventFilter (QObject *obj, QEvent *event) override |
| |
|
|
std::atomic< bool > | m_blockEventPropagation |
| |
|
std::map< QEvent::Type, uint64_t > | m_lastEventReceived |
| |
|
uint64_t | m_minEventTimeout |
| | The minimum time interval that has to be present between two events of the same type to be accepted.
|
| |
◆ KeyboardEventsReceiver()
- Parameters
-
| parent | The parent object of the qWidget |
| blockEventPropagation | Whether the reception of the key press/released event should be propagated further or stopped. If stopped, eventual event filters installed before the current one will not receive any keyboard events. |
| debouncingTimeoutMs | The accepted timeout between events of the same type. Events occurring within the timeout time from the last event of the same type are not processed |
◆ blockEventPropagation()
| void blockEventPropagation |
( |
bool | val | ) |
|
Whether the reception of keyboard events should not be further propagated.
Use this functionality with caution, as if you install this event filter as last, preventing propagation of keyboard clicks will disable interactions between the ImFusionSuite GUI and keyboard
The documentation for this class was generated from the following file:
- RoboticsPlugin/Include/ImFusion/Robotics/IO/KeyboardEventsReceiver.h