1 /*
2  * Copyright (c) 2023 Nordic Semiconductor
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * "Bottom" of the SDL input driver.
7  * When built with the native_simulator this will be built in the runner context,
8  * that is, with the host C library, and with the host include paths.
9  */
10 
11 #ifndef DRIVERS_INPUT_INPUT_SDL_TOUCH_BOTTOM_H
12 #define DRIVERS_INPUT_INPUT_SDL_TOUCH_BOTTOM_H
13 
14 #include <stdint.h>
15 #include <stdbool.h>
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 /* Note: None of these are public interfaces. But internal to the SDL input driver */
22 
23 struct sdl_input_data {
24 	const void *dev; /* device structure pointer */
25 	const void *display_dev;
26 	void (*callback)(struct sdl_input_data *data);
27 	int x;
28 	int y;
29 	bool pressed;
30 	bool just_released;
31 };
32 
33 void sdl_input_init_bottom(struct sdl_input_data *data);
34 
35 #ifdef __cplusplus
36 }
37 #endif
38 
39 #endif /* DRIVERS_INPUT_INPUT_SDL_TOUCH_BOTTOM_H */
40