mirror of https://github.com/encounter/SDL.git
Android: Fixed creating mouse coordinates which are not needed if hint is set.
This commit is contained in:
parent
b473d30f19
commit
458b94da5f
|
@ -108,8 +108,8 @@ void Android_OnTouch(int touch_device_id_in, int pointer_finger_id_in, int actio
|
||||||
switch (action) {
|
switch (action) {
|
||||||
case ACTION_DOWN:
|
case ACTION_DOWN:
|
||||||
/* Primary pointer down */
|
/* Primary pointer down */
|
||||||
Android_GetWindowCoordinates(x, y, &window_x, &window_y);
|
|
||||||
if (!separate_mouse_and_touch) {
|
if (!separate_mouse_and_touch) {
|
||||||
|
Android_GetWindowCoordinates(x, y, &window_x, &window_y);
|
||||||
/* send moved event */
|
/* send moved event */
|
||||||
SDL_SendMouseMotion(Android_Window, SDL_TOUCH_MOUSEID, 0, window_x, window_y);
|
SDL_SendMouseMotion(Android_Window, SDL_TOUCH_MOUSEID, 0, window_x, window_y);
|
||||||
/* send mouse down event */
|
/* send mouse down event */
|
||||||
|
@ -123,8 +123,8 @@ void Android_OnTouch(int touch_device_id_in, int pointer_finger_id_in, int actio
|
||||||
|
|
||||||
case ACTION_MOVE:
|
case ACTION_MOVE:
|
||||||
if (!pointerFingerID) {
|
if (!pointerFingerID) {
|
||||||
Android_GetWindowCoordinates(x, y, &window_x, &window_y);
|
|
||||||
if (!separate_mouse_and_touch) {
|
if (!separate_mouse_and_touch) {
|
||||||
|
Android_GetWindowCoordinates(x, y, &window_x, &window_y);
|
||||||
/* send moved event */
|
/* send moved event */
|
||||||
SDL_SendMouseMotion(Android_Window, SDL_TOUCH_MOUSEID, 0, window_x, window_y);
|
SDL_SendMouseMotion(Android_Window, SDL_TOUCH_MOUSEID, 0, window_x, window_y);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue