summaryrefslogtreecommitdiffstats
path: root/input/input.h
diff options
context:
space:
mode:
authorDudemanguy911 <random342@airmail.cc>2019-09-01 21:06:09 -0500
committerDudemanguy911 <random342@airmail.cc>2019-09-21 16:58:14 +0000
commit4614d432a8d21ab135af25a183f57efd5059bb62 (patch)
tree000f2e241600ca79daf515c943c08475925b1543 /input/input.h
parentdd547ddcc231fe9e966835bf497ee8458aa6e5f1 (diff)
downloadmpv-4614d432a8d21ab135af25a183f57efd5059bb62.tar.bz2
mpv-4614d432a8d21ab135af25a183f57efd5059bb62.tar.xz
input: add keybind command
Diffstat (limited to 'input/input.h')
-rw-r--r--input/input.h3
1 files changed, 3 insertions, 0 deletions
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);