|
stmm-input-doc
0.17.0
|
Converts from evdev gdk keycode to hardware key (linux/input.h).
More...

Public Member Functions | |
| bool | convertKeyCodeToHardwareKey (guint16 nGdkKeycode, HARDWARE_KEY &eHardwareKey) const noexcept override |
| Converts a Gdk keycode to a hardware key. More... | |
| bool | convertEventKeyToHardwareKey (GdkEventKey const *p0GdkEvent, HARDWARE_KEY &eHardwareKey) const noexcept override |
| Converts a GdkEventKey to a hardware key. More... | |
Public Member Functions inherited from stmi::GdkKeyConverter | |
| virtual | ~GdkKeyConverter () noexcept=default |
Static Public Member Functions | |
| static const shared_ptr< GdkKeyConverterEvDev > & | getConverter () noexcept |
| Returns the singleton evdev converter. More... | |
Static Public Member Functions inherited from stmi::GdkKeyConverter | |
| static const shared_ptr< GdkKeyConverter > & | getConverter () noexcept |
| Get the key converter instance (creating the default if not set). More... | |
| static bool | isConverterSet () noexcept |
| Whether the singleton converter was already set. More... | |
| static bool | setConverter (const shared_ptr< GdkKeyConverter > &refConverter) noexcept |
| Set the key converter instance. More... | |
Converts from evdev gdk keycode to hardware key (linux/input.h).
Evdev formula: eHardwareKey = nGdkKeycode - 8.
|
overridevirtualnoexcept |
Converts a GdkEventKey to a hardware key.
If the keycode isn't enough to determine the hardware key, the whole key event (if available) can be used.
| p0GdkEvent | The event to convert. Cannot be null. |
| eHardwareKey | The resulting hardware key. |
Implements stmi::GdkKeyConverter.
|
overridevirtualnoexcept |
Converts a Gdk keycode to a hardware key.
| nGdkKeycode | The Gdk keycode. |
| eHardwareKey | The resulting hardware key. |
Implements stmi::GdkKeyConverter.
|
staticnoexcept |
Returns the singleton evdev converter.
1.8.13