src/video/android/SDL_androidmouse.c
changeset 12462 b57435750c5b
parent 12025 39a92b19f99e
child 12494 6053ab61996a
     1.1 --- a/src/video/android/SDL_androidmouse.c	Wed Dec 05 19:03:15 2018 -0500
     1.2 +++ b/src/video/android/SDL_androidmouse.c	Thu Dec 06 09:22:00 2018 +0100
     1.3 @@ -234,7 +234,7 @@
     1.4              changes = state & ~last_state;
     1.5              button = TranslateButton(changes);
     1.6              last_state = state;
     1.7 -            SDL_SendMouseMotion(Android_Window, 0, relative, x, y);
     1.8 +            SDL_SendMouseMotion(Android_Window, 0, relative, (int)x, (int)y);
     1.9              SDL_SendMouseButton(Android_Window, 0, SDL_PRESSED, button);
    1.10              break;
    1.11  
    1.12 @@ -242,13 +242,13 @@
    1.13              changes = last_state & ~state;
    1.14              button = TranslateButton(changes);
    1.15              last_state = state;
    1.16 -            SDL_SendMouseMotion(Android_Window, 0, relative, x, y);
    1.17 +            SDL_SendMouseMotion(Android_Window, 0, relative, (int)x, (int)y);
    1.18              SDL_SendMouseButton(Android_Window, 0, SDL_RELEASED, button);
    1.19              break;
    1.20  
    1.21          case ACTION_MOVE:
    1.22          case ACTION_HOVER_MOVE:
    1.23 -            SDL_SendMouseMotion(Android_Window, 0, relative, x, y);
    1.24 +            SDL_SendMouseMotion(Android_Window, 0, relative, (int)x, (int)y);
    1.25              break;
    1.26  
    1.27          case ACTION_SCROLL: