android: implement fgPlatformSetCursor/fgPlatformWarpPointer
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1279 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
ae35d72efd
commit
260c71b27e
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user