| 361 | namespace dvl { |
| 362 | |
| 363 | void handle_touch(SDL_Event *event, int current_mouse_x, int current_mouse_y) |
| 364 | { |
| 365 | mouse_x = current_mouse_x; |
| 366 | mouse_y = current_mouse_y; |
| 367 | |
| 368 | if (!touch_initialized) { |
| 369 | init_touch(); |
| 370 | touch_initialized = true; |
| 371 | } |
| 372 | preprocess_events(event); |
| 373 | if (event->type == SDL_FINGERDOWN || event->type == SDL_FINGERUP || event->type == SDL_FINGERMOTION) { |
| 374 | event->type = SDL_USEREVENT; |
| 375 | event->user.code = -1; // ensure this event is ignored; |
| 376 | } |
| 377 | } |
| 378 | |
| 379 | void finish_simulated_mouse_clicks(int current_mouse_x, int current_mouse_y) |
| 380 | { |
no test coverage detected