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 	void (*callback)(struct sdl_input_data *data);
26 	int x;
27 	int y;
28 	bool pressed;
29 	bool just_released;
30 };
31 
32 void sdl_input_init_bottom(struct sdl_input_data *data);
33 
34 #ifdef __cplusplus
35 }
36 #endif
37 
38 #endif /* DRIVERS_INPUT_INPUT_SDL_TOUCH_BOTTOM_H */
39