1
mirror of https://github.com/mpv-player/mpv synced 2024-11-18 21:16:10 +01:00

input: debug output for registered bindings

This commit is contained in:
wm4 2014-02-17 02:35:16 +01:00
parent 03624a1747
commit 12b7850f11

View File

@ -1349,6 +1349,13 @@ static void bind_keys(struct input_ctx *ictx, bool builtin, bstr section,
.num_keys = num_keys,
};
memcpy(bind->keys, keys, num_keys * sizeof(bind->keys[0]));
if (mp_msg_test(ictx->log, MSGL_DEBUG)) {
char *s = mp_input_get_key_combo_name(keys, num_keys);
MP_DBG(ictx, "add: section='%s' key='%s'%s cmd='%s' location='%s'\n",
bind->owner->section, s, bind->is_builtin ? " builtin" : "",
bind->cmd, bind->location);
talloc_free(s);
}
}
// restrict_section: every entry is forced to this section name