diff options
Diffstat (limited to 'input/input.h')
-rw-r--r-- | input/input.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/input/input.h b/input/input.h index 7f6707eeca..aafabdb9cb 100644 --- a/input/input.h +++ b/input/input.h @@ -102,6 +102,16 @@ 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, int *hover); +// Add/Update/Remove a touch point (in window coordinates). +void mp_input_add_touch_point(struct input_ctx *ictx, int id, int x, int y); +void mp_input_update_touch_point(struct input_ctx *ictx, int id, int x, int y); +void mp_input_remove_touch_point(struct input_ctx *ictx, int id); + +// Get the positions of the touch points. xs and ys are arrays of at least +// count elements. ids is an array of at least count elements to uniquely +// identify touch points. Return the current number of touch points. +int mp_input_get_touch_pos(struct input_ctx *ictx, int count, int *xs, int *ys, int *ids); + // Return whether we want/accept mouse input. bool mp_input_mouse_enabled(struct input_ctx *ictx); |