DISTRHO Plugin Framework
|
#include <Widget.hpp>
Public Member Functions | |
KeyboardEvent () noexcept | |
Public Member Functions inherited from Widget::BaseEvent | |
BaseEvent () noexcept | |
virtual | ~BaseEvent () noexcept |
Public Attributes | |
bool | press |
uint | key |
uint | keycode |
Public Attributes inherited from Widget::BaseEvent | |
uint | mod |
uint | flags |
uint | time |
Keyboard event.
This event represents low-level key presses and releases. This can be used for "direct" keyboard handing like key bindings, but must not be interpreted as text input.
Keys are represented portably as Unicode code points, using the "natural" code point for the key. The key field is the code for the pressed key, without any modifiers applied. For example, a press or release of the 'A' key will have key
97 ('a') regardless of whether shift or control are being held.
Alternatively, the raw keycode can be used to work directly with physical keys, but note that this value is not portable and differs between platforms and hardware.
|
inlinenoexcept |
Constructor for default/null values
bool Widget::KeyboardEvent::press |
True if the key was pressed, false if released.
uint Widget::KeyboardEvent::key |
Unicode point of the key pressed.
uint Widget::KeyboardEvent::keycode |
Raw keycode.