SDL: SDL_WarpMouse() will move cursor coordinates for captured mouse on Android O

This commit is contained in:
Sergii Pylypenko
2020-02-27 21:09:39 +02:00
parent 610e43e388
commit bb09438e1b
7 changed files with 27 additions and 7 deletions

View File

@@ -884,6 +884,12 @@ class DemoRenderer extends GLSurfaceView_SDL.Renderer
Clipboard.get().set(context, s);
}
public void setCapturedMousePosition(int x, int y) // Called from native code
{
DifferentTouchInput.capturedMouseX = x;
DifferentTouchInput.capturedMouseY = y;
}
public void exitApp()
{
nativeDone();