From b87191d176357f171b1dda51366c962c13faa28e Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 18 Apr 2014 16:48:13 +0200 Subject: input: move a function --- input/input.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'input') diff --git a/input/input.c b/input/input.c index 0d8118d8fe..f3233c4d06 100644 --- a/input/input.c +++ b/input/input.c @@ -348,17 +348,6 @@ static mp_cmd_t *handle_test(struct input_ctx *ictx, int code) return res; } -static bool bind_matches_key(struct cmd_bind *bind, int num_keys, const int *keys) -{ - if (bind->num_keys != num_keys) - return false; - for (int i = 0; i < num_keys; i++) { - if (bind->keys[i] != keys[i]) - return false; - } - return true; -} - static struct cmd_bind_section *get_bind_section(struct input_ctx *ictx, bstr section) { @@ -1323,6 +1312,17 @@ void mp_input_define_section(struct input_ctx *ictx, char *name, char *location, input_unlock(ictx); } +static bool bind_matches_key(struct cmd_bind *bind, int num_keys, const int *keys) +{ + if (bind->num_keys != num_keys) + return false; + for (int i = 0; i < num_keys; i++) { + if (bind->keys[i] != keys[i]) + return false; + } + return true; +} + static void bind_keys(struct input_ctx *ictx, bool builtin, bstr section, const int *keys, int num_keys, bstr command, const char *loc) -- cgit v1.2.3