mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-22 03:40:30 +00:00
Keycontrol: function to obtain key name
This commit is contained in:
@@ -882,3 +882,9 @@ bool keycontrol_register_key(struct module *receiver_mod, int64_t key, const cha
|
||||
return true;
|
||||
}
|
||||
|
||||
void get_keycode_name(int64_t ch, char *buf, size_t buflen) {
|
||||
string name = get_keycode_representation(ch);
|
||||
strncpy(buf, name.c_str(), buflen - 1);
|
||||
buf[buflen - 1] = '\0';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user