FreeRDP
SDL3/sdl_touch.hpp
1 
20 #pragma once
21 
22 #include <winpr/wtypes.h>
23 
24 #include <SDL3/SDL.h>
25 #include "sdl_types.hpp"
26 
27 BOOL sdl_scale_coordinates(SdlContext* sdl, Uint32 windowId, INT32* px, INT32* py,
28  BOOL fromLocalToRDP, BOOL applyOffset);
29 
30 BOOL sdl_handle_mouse_motion(SdlContext* sdl, const SDL_MouseMotionEvent* ev);
31 BOOL sdl_handle_mouse_wheel(SdlContext* sdl, const SDL_MouseWheelEvent* ev);
32 BOOL sdl_handle_mouse_button(SdlContext* sdl, const SDL_MouseButtonEvent* ev);
33 
34 BOOL sdl_handle_touch_down(SdlContext* sdl, const SDL_TouchFingerEvent* ev);
35 BOOL sdl_handle_touch_up(SdlContext* sdl, const SDL_TouchFingerEvent* ev);
36 BOOL sdl_handle_touch_motion(SdlContext* sdl, const SDL_TouchFingerEvent* ev);