summaryrefslogtreecommitdiffstats
path: root/input/input.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-02-04 23:01:15 +0100
committerwm4 <wm4@nowhere>2016-02-04 23:01:15 +0100
commitb4f63cbbec563e46ef01899b7292e301e961ec1d (patch)
tree0ada8fe035790c43c9fe96bfa45307036967d592 /input/input.h
parent155f7fac9dd8d756656a05376da9495e1348daad (diff)
downloadmpv-b4f63cbbec563e46ef01899b7292e301e961ec1d.tar.bz2
mpv-b4f63cbbec563e46ef01899b7292e301e961ec1d.tar.xz
input: ignore --input-cursor for events injected by input commands
Apparently useful for window embedding. Fixes #2750.
Diffstat (limited to 'input/input.h')
-rw-r--r--input/input.h6
1 files changed, 6 insertions, 0 deletions
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.