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 /player/command.c | |
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 'player/command.c')
-rw-r--r-- | player/command.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/player/command.c b/player/command.c index 4e29c8693c..6f7af7512d 100644 --- a/player/command.c +++ b/player/command.c @@ -6158,7 +6158,7 @@ static void cmd_mouse(void *p) if (button == -1) {// no button if (pre_key) - mp_input_put_key_artificial(mpctx->input, pre_key); + mp_input_put_key_artificial(mpctx->input, pre_key, 1); mp_input_set_mouse_pos_artificial(mpctx->input, x, y); return; } @@ -6176,9 +6176,9 @@ static void cmd_mouse(void *p) } button += dbc ? MP_MBTN_DBL_BASE : MP_MBTN_BASE; if (pre_key) - mp_input_put_key_artificial(mpctx->input, pre_key); + mp_input_put_key_artificial(mpctx->input, pre_key, 1); mp_input_set_mouse_pos_artificial(mpctx->input, x, y); - mp_input_put_key_artificial(mpctx->input, button); + mp_input_put_key_artificial(mpctx->input, button, 1); } static void cmd_key(void *p) @@ -6189,7 +6189,7 @@ static void cmd_key(void *p) const char *key_name = cmd->args[0].v.s; if (key_name[0] == '\0' && action == MP_KEY_STATE_UP) { - mp_input_put_key_artificial(mpctx->input, MP_INPUT_RELEASE_ALL); + mp_input_put_key_artificial(mpctx->input, MP_INPUT_RELEASE_ALL, 1); } else { int code = mp_input_get_key_from_name(key_name); if (code < 0) { @@ -6197,7 +6197,7 @@ static void cmd_key(void *p) cmd->success = false; return; } - mp_input_put_key_artificial(mpctx->input, code | action); + mp_input_put_key_artificial(mpctx->input, code | action, 1); } } |