|
|
void | addSystemBinding (keyboard_key key, command command) noexcept |
| |
|
void | addIgnoredBinding (keyboard_key key, command command) noexcept |
| |
|
void | addUserBinding (keyboard_key key, command command) noexcept |
| |
| std::vector< command > const & | translate (keyboard_key key) const noexcept |
| | translate a key press in the empty-context to a command.
|
| |
| void | clear () noexcept |
| | Clear all bindings.
|
| |
| void | loadBindings (URL url, bool system_binding) |
| | Load bindings from a JSON file.
|
| |
| void | loadSystemBindings () |
| | Load system bindings.
|
| |
|
void | loadUserBindings (URL url) |
| |
| void | saveUserBindings (URL url) |
| | Save user bindings This will save all bindings that are different from the system bindings.
|
| |
◆ clear()
| void tt::keyboard_bindings::clear |
( |
| ) |
|
|
inlinenoexcept |
Clear all bindings.
When loading a new user-binding file, one should do a clear() followed by loading the system bindings, followed by the user bindings.
◆ loadBindings()
| void tt::keyboard_bindings::loadBindings |
( |
URL | url, |
|
|
bool | system_binding ) |
Load bindings from a JSON file.
◆ loadSystemBindings()
| void tt::keyboard_bindings::loadSystemBindings |
( |
| ) |
|
|
inline |
◆ saveUserBindings()
| void tt::keyboard_bindings::saveUserBindings |
( |
URL | url | ) |
|
Save user bindings This will save all bindings that are different from the system bindings.
◆ translate()
translate a key press in the empty-context to a command.
The documentation for this class was generated from the following file: