diff options
author | sfan5 <sfan5@live.de> | 2023-12-16 15:01:04 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2023-12-17 18:36:16 +0100 |
commit | a08e8e0b46652c6cca55912b7aeb3fdeb1eba155 (patch) | |
tree | b3d7253f50c4423c7623040d754d0f16e05feb75 /input/input.h | |
parent | ba547cb098580ecad52dd71de61313d5741d2e8e (diff) | |
download | mpv-a08e8e0b46652c6cca55912b7aeb3fdeb1eba155.tar.bz2 mpv-a08e8e0b46652c6cca55912b7aeb3fdeb1eba155.tar.xz |
input: add value argument for mp_input_put_key_artificial
Diffstat (limited to 'input/input.h')
-rw-r--r-- | input/input.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/input/input.h b/input/input.h index 5b5e7a99ce..cfc9480342 100644 --- a/input/input.h +++ b/input/input.h @@ -83,7 +83,8 @@ void mp_input_src_feed_cmd_text(struct mp_input_src *src, char *buf, size_t len) void mp_input_put_key(struct input_ctx *ictx, int code); // Like mp_input_put_key(), but ignore mouse disable option for mouse buttons. -void mp_input_put_key_artificial(struct input_ctx *ictx, int code); +// value can be used like with mp_input_put_wheel(), use 1 if not applicable. +void mp_input_put_key_artificial(struct input_ctx *ictx, int code, double value); // Like mp_input_put_key(), but process all UTF-8 characters in the given // string as key events. |