diff options
Diffstat (limited to 'input')
-rw-r--r-- | input/input.c | 2 | ||||
-rw-r--r-- | input/input.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/input/input.c b/input/input.c index 575970bd73..e92cc3f13c 100644 --- a/input/input.c +++ b/input/input.c @@ -1373,7 +1373,7 @@ mp_input_get_key_name(int key) { } -static int +int mp_input_get_key_from_name(const char *name) { int i,ret = 0,len = strlen(name); if(len == 1) { // Direct key code diff --git a/input/input.h b/input/input.h index 3dc7598f64..6ed71c4320 100644 --- a/input/input.h +++ b/input/input.h @@ -238,6 +238,9 @@ int mp_input_add_event_fd(int fd, void (*read_func)(void)); void mp_input_rm_event_fd(int fd); +/// Get input key from its name. +int mp_input_get_key_from_name(const char *name); + // This function can be used to put a command in the system again. It's used by libmpdemux // when it performs a blocking operation to resend the command it received to the main // loop. |