at master 657 B view raw
1/* SPDX-License-Identifier: GPL-2.0-only */ 2/* 3 * Copyright (c) 2023 Javier Carrasco <javier.carrasco@wolfvision.net> 4 */ 5 6#ifndef _TOUCH_OVERLAY 7#define _TOUCH_OVERLAY 8 9#include <linux/types.h> 10 11struct input_dev; 12 13int touch_overlay_map(struct list_head *list, struct input_dev *input); 14 15void touch_overlay_get_touchscreen_abs(struct list_head *list, u16 *x, u16 *y); 16 17bool touch_overlay_mapped_touchscreen(struct list_head *list); 18 19bool touch_overlay_process_contact(struct list_head *list, 20 struct input_dev *input, 21 struct input_mt_pos *pos, int slot); 22 23void touch_overlay_sync_frame(struct list_head *list, struct input_dev *input); 24 25#endif