Android: Fixed missing mouse motion events while button down (thanks, Sylvain!).
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Tue, 30 Aug 2016 21:14:52 +0200
changeset 10295b75ad23f8811
parent 10294 1ed0064677af
child 10296 80190c2a271d
Android: Fixed missing mouse motion events while button down (thanks, Sylvain!).

Happened for real mouse if SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH was active.

Fixes Bugzilla #3313.
src/video/android/SDL_androidmouse.c
     1.1 --- a/src/video/android/SDL_androidmouse.c	Tue Aug 30 21:14:13 2016 +0200
     1.2 +++ b/src/video/android/SDL_androidmouse.c	Tue Aug 30 21:14:52 2016 +0200
     1.3 @@ -32,6 +32,7 @@
     1.4  
     1.5  #define ACTION_DOWN 0
     1.6  #define ACTION_UP 1
     1.7 +#define ACTION_MOVE 2
     1.8  #define ACTION_HOVER_MOVE 7
     1.9  #define ACTION_SCROLL 8
    1.10  #define BUTTON_PRIMARY 1
    1.11 @@ -77,6 +78,7 @@
    1.12              SDL_SendMouseButton(Android_Window, 0, SDL_RELEASED, SDLButton);
    1.13              break;
    1.14  
    1.15 +        case ACTION_MOVE:
    1.16          case ACTION_HOVER_MOVE:
    1.17              SDL_SendMouseMotion(Android_Window, 0, 0, x, y);
    1.18              break;