From 4614d432a8d21ab135af25a183f57efd5059bb62 Mon Sep 17 00:00:00 2001 From: Dudemanguy911 Date: Sun, 1 Sep 2019 21:06:09 -0500 Subject: input: add keybind command --- input/input.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'input/input.h') diff --git a/input/input.h b/input/input.h index ff194785c9..3dfc053bd0 100644 --- a/input/input.h +++ b/input/input.h @@ -203,6 +203,9 @@ bool mp_input_use_media_keys(struct input_ctx *ictx); // Like mp_input_parse_cmd_strv, but also run the command. void mp_input_run_cmd(struct input_ctx *ictx, const char **cmd); +// Binds a command to a key. +void mp_input_bind_key(struct input_ctx *ictx, int key, bstr command); + void mp_input_set_repeat_info(struct input_ctx *ictx, int rate, int delay); void mp_input_pipe_add(struct input_ctx *ictx, const char *filename); -- cgit v1.2.3