From b4f63cbbec563e46ef01899b7292e301e961ec1d Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 4 Feb 2016 23:01:15 +0100 Subject: input: ignore --input-cursor for events injected by input commands Apparently useful for window embedding. Fixes #2750. --- input/input.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'input/input.h') diff --git a/input/input.h b/input/input.h index 6462555326..41432eb54d 100644 --- a/input/input.h +++ b/input/input.h @@ -132,6 +132,9 @@ void mp_input_src_feed_cmd_text(struct mp_input_src *src, char *buf, size_t len) // with modifiers applied. MP_INPUT_RELEASE_ALL is also a valid value. 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); + // Like mp_input_put_key(), but process all UTF-8 characters in the given // string as key events. void mp_input_put_key_utf8(struct input_ctx *ictx, int mods, struct bstr t); @@ -143,6 +146,9 @@ void mp_input_put_axis(struct input_ctx *ictx, int direction, double value); // Update mouse position (in window coordinates). void mp_input_set_mouse_pos(struct input_ctx *ictx, int x, int y); +// Like mp_input_set_mouse_pos(), but ignore mouse disable option. +void mp_input_set_mouse_pos_artificial(struct input_ctx *ictx, int x, int y); + void mp_input_get_mouse_pos(struct input_ctx *ictx, int *x, int *y); // Return whether we want/accept mouse input. -- cgit v1.2.3