X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fandroid%2Ffg_cursor_android.c;h=fe599d18374813ef8ff36f6a0701658e13ebcbad;hb=2c12c9eb8d63cabac2d4113b4f54fdf53da8368c;hp=3b410ae1720ed67adf39a6a0be9e2bea1cf2ae62;hpb=ea968d8d5368af635d7321d44251c3a76f4c8895;p=freeglut diff --git a/src/android/fg_cursor_android.c b/src/android/fg_cursor_android.c index 3b410ae..fe599d1 100644 --- a/src/android/fg_cursor_android.c +++ b/src/android/fg_cursor_android.c @@ -28,11 +28,15 @@ void fgPlatformSetCursor ( SFG_Window *window, int cursorID ) { - fprintf(stderr, "fgPlatformSetCursor: STUB\n"); + /* No-op: no visible cursor on touchscreens */ } void fgPlatformWarpPointer ( int x, int y ) { - fprintf(stderr, "fgPlatformWarpPointer: STUB\n"); + /* Even if there's no pointer on touchscreen, keep track of the + last position, e.g. for menus */ + SFG_Window* window = fgStructure.CurrentWindow; + window->State.MouseX = x; + window->State.MouseY = y; + /* TODO: this should simulate a fake motion event */ } -