summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-02-17 02:35:16 +0100
committerwm4 <wm4@nowhere>2014-02-17 02:52:58 +0100
commit12b7850f11f524ec158b392d7fceabd4ba193ba3 (patch)
treeb9e65063d5d60cdfa245640eee36d850262c5e15 /input
parent03624a174702dd72adc3043e5bb3a5d7c476570d (diff)
downloadmpv-12b7850f11f524ec158b392d7fceabd4ba193ba3.tar.bz2
mpv-12b7850f11f524ec158b392d7fceabd4ba193ba3.tar.xz
input: debug output for registered bindings
Diffstat (limited to 'input')
-rw-r--r--input/input.c7
1 files changed, 7 insertions, 0 deletions
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