projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
android: implement fgPlatformSetCursor/fgPlatformWarpPointer
[freeglut]
/
src
/
android
/
fg_cursor_android.c
diff --git
a/src/android/fg_cursor_android.c
b/src/android/fg_cursor_android.c
index
3b410ae
..
28838a9
100644
(file)
--- a/
src/android/fg_cursor_android.c
+++ b/
src/android/fg_cursor_android.c
@@
-28,11
+28,14
@@
void fgPlatformSetCursor ( SFG_Window *window, int cursorID )
{
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 )
{
}
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;
}
}
-