mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +00:00
parent
7d2b39058c
commit
8692e9af80
@ -281,7 +281,7 @@ static int cursorThread(void * unused)
|
|||||||
state.lgr->on_mouse_event
|
state.lgr->on_mouse_event
|
||||||
(
|
(
|
||||||
state.lgrData,
|
state.lgrData,
|
||||||
state.cursorVisible && state.drawCursor && state.cursorInView,
|
state.cursorVisible && state.drawCursor,
|
||||||
state.cursor.x,
|
state.cursor.x,
|
||||||
state.cursor.y
|
state.cursor.y
|
||||||
);
|
);
|
||||||
@ -356,7 +356,7 @@ static int cursorThread(void * unused)
|
|||||||
state.lgr->on_mouse_event
|
state.lgr->on_mouse_event
|
||||||
(
|
(
|
||||||
state.lgrData,
|
state.lgrData,
|
||||||
state.cursorVisible && state.drawCursor && state.cursorInView,
|
state.cursorVisible && state.drawCursor,
|
||||||
state.cursor.x,
|
state.cursor.x,
|
||||||
state.cursor.y
|
state.cursor.y
|
||||||
);
|
);
|
||||||
@ -730,6 +730,9 @@ static void handleMouseMoveEvent(int ex, int ey)
|
|||||||
state.cursorInView = false;
|
state.cursorInView = false;
|
||||||
state.updateCursor = true;
|
state.updateCursor = true;
|
||||||
state.warpState = WARP_STATE_OFF;
|
state.warpState = WARP_STATE_OFF;
|
||||||
|
|
||||||
|
if (params.useSpiceInput)
|
||||||
|
state.drawCursor = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -738,6 +741,7 @@ static void handleMouseMoveEvent(int ex, int ey)
|
|||||||
{
|
{
|
||||||
state.cursorInView = true;
|
state.cursorInView = true;
|
||||||
state.updateCursor = true;
|
state.updateCursor = true;
|
||||||
|
state.drawCursor = true;
|
||||||
if (state.warpState == WARP_STATE_ARMED)
|
if (state.warpState == WARP_STATE_ARMED)
|
||||||
state.warpState = WARP_STATE_ON;
|
state.warpState = WARP_STATE_ON;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user