From 12b7850f11f524ec158b392d7fceabd4ba193ba3 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 17 Feb 2014 02:35:16 +0100 Subject: input: debug output for registered bindings --- input/input.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'input') diff --git a/input/input.c b/input/input.c index 510048337e..a578f8cb1f 100644 --- a/input/input.c +++ b/input/input.c @@ -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 -- cgit v1.2.3