HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions
tt::keyboard_bindings Class Reference

Public Member Functions

void add_system_binding (keyboard_key key, command command) noexcept
 
void add_ignored_binding (keyboard_key key, command command) noexcept
 
void add_user_binding (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 load_bindings (URL url, bool system_binding=false)
 Load bindings from a JSON file.
 

Member Function Documentation

◆ 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.

◆ load_bindings()

void tt::keyboard_bindings::load_bindings ( URL url,
bool system_binding = false )

Load bindings from a JSON file.

◆ translate()

std::vector< command > const & tt::keyboard_bindings::translate ( keyboard_key key) const
inlinenoexcept

translate a key press in the empty-context to a command.


The documentation for this class was generated from the following file: