Send touch events from the client

On SDL touch events, send control messages to the server.
This commit is contained in:
Romain Vimont
2019-09-22 21:30:05 +02:00
parent f765aae352
commit b5a2d99bc2
5 changed files with 52 additions and 0 deletions

View File

@@ -30,6 +30,10 @@ bool
convert_mouse_motion(const SDL_MouseMotionEvent *from, struct size screen_size,
struct control_msg *to);
bool
convert_touch(const SDL_TouchFingerEvent *from, struct size screen_size,
struct control_msg *to);
// on Android, a scroll event requires the current mouse position
bool
convert_mouse_wheel(const SDL_MouseWheelEvent *from, struct position position,