|
stmm-input-doc
0.17.0
|
Key repeat translation type. More...
Public Types | |
| enum | MODE { MODE_NOT_SET = 0, MODE_SUPPRESS = 1, MODE_ADD_RELEASE = 2, MODE_ADD_RELEASE_CANCEL = 3 } |
Static Public Member Functions | |
| static MODE | getMode () noexcept |
| Get the global key repeat mode (or the default if not set). More... | |
| static bool | isModeSet () noexcept |
| Whether global key repeat mode was already set. More... | |
| static bool | setMode (MODE eKeyRepeatMode) noexcept |
| Set the global key repeat mode (creating the default if not set). More... | |
Key repeat translation type.
Key presses unanswered by a release are not allowed.
For example the gdk event sequence for a specific key
Press Press Press Release
is translated in either
Press Release Press Release Press Release (add release mode)
or
Press Cancel Press Cancel Press Release (add release cancel mode)
or
Press Release (suppress mode)
|
staticnoexcept |
Get the global key repeat mode (or the default if not set).
If the mode was not set with setMode() the default is set and returned.
This global key repeat mode can be used as an implicit parameter to device managers that are loaded as plugins by PluginsDeviceManager (libstmm-input-dl).
After this function is called, the global key repeat mode can no longer be changed.
The default key repeat mode is MODE_SUPPRESS.
|
staticnoexcept |
Whether global key repeat mode was already set.
|
staticnoexcept |
Set the global key repeat mode (creating the default if not set).
If the mode was already set by calling getMode() or this very function, the setting fails and false is returned. This means that this function should be called very early in your program before getMode() has a chance to be called (that is the plugins get loaded).
| eKeyRepeatMode | Cannot be null. |
1.8.13