1 #ifndef __al_included_allegro5_aintern_touch_input_h 2 #define __al_included_allegro5_aintern_touch_input_h 3 4 #include "allegro5/internal/aintern_driver.h" 5 #include "allegro5/internal/aintern_events.h" 6 7 #ifdef __cplusplus 8 extern "C" { 9 #endif 10 11 12 typedef struct ALLEGRO_TOUCH_INPUT_DRIVER 13 { 14 int id; 15 AL_METHOD(bool, init_touch_input, (void)); 16 AL_METHOD(void, exit_touch_input, (void)); 17 AL_METHOD(ALLEGRO_TOUCH_INPUT*, get_touch_input, (void)); 18 AL_METHOD(void, get_touch_input_state, (ALLEGRO_TOUCH_INPUT_STATE *ret_state)); 19 AL_METHOD(void, set_mouse_emulation_mode, (int mode)); 20 AL_METHOD(int, get_mouse_emulation_mode, (void)); 21 } ALLEGRO_TOUCH_INPUT_DRIVER; 22 23 24 struct ALLEGRO_TOUCH_INPUT 25 { 26 ALLEGRO_EVENT_SOURCE es; 27 ALLEGRO_EVENT_SOURCE mouse_emulation_es; 28 int mouse_emulation_mode; 29 }; 30 31 extern _AL_DRIVER_INFO _al_touch_input_driver_list[]; 32 33 #ifdef __cplusplus 34 } 35 #endif 36 37 #endif 38