| 717 | } |
| 718 | |
| 719 | void InputManager::touch_finger_do_mouse_motion(const SDL_TouchFingerEvent& e) { |
| 720 | Vector2f mouseNewPos = backend_touch_cursor_pos_calculation({e.x, e.y}); |
| 721 | mouse.set_pos(mouseNewPos); |
| 722 | Vector2f mouseRel = backend_touch_cursor_delta_calculation({e.dx, e.dy}); |
| 723 | main.input_mouse_motion_callback({ |
| 724 | .deviceType = MouseDeviceType::TOUCH, |
| 725 | .pos = mouseNewPos, |
| 726 | .move = mouseRel |
| 727 | }); |
| 728 | } |
| 729 | |
| 730 | void InputManager::backend_touch_finger_down_update(const SDL_TouchFingerEvent& e) { |
| 731 | touch.fingers.emplace_back(e); |
nothing calls this directly
no test coverage detected