Merging r6107 through r6116 from trunk to ogl-es branch
Caught up with trunk again. Not yet tested beside compiling (quick test failed, but seems like nothing from the new changes). git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/branches/ogl-es@6117 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
@@ -148,11 +148,9 @@ namespace irr
|
||||
while ( gotCursorInfo )
|
||||
{
|
||||
#ifdef CURSOR_SUPPRESSED
|
||||
// new flag for Windows 8, where cursor
|
||||
// might be suppressed for touch interface
|
||||
if (info.flags == CURSOR_SUPPRESSED)
|
||||
// Since Windows 8 the cursor can be suppressed by a touch interface
|
||||
if (visible && info.flags == CURSOR_SUPPRESSED)
|
||||
{
|
||||
visible=false;
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
@@ -173,6 +171,16 @@ namespace irr
|
||||
// yes, it really must be set each time
|
||||
info.cbSize = sizeof(CURSORINFO);
|
||||
gotCursorInfo = GetCursorInfo(&info);
|
||||
|
||||
#ifdef CURSOR_SUPPRESSED
|
||||
// Not sure if a cursor which we tried to hide still can be suppressed.
|
||||
// I have no touch-display for testing this and MSDN doesn't describe it.
|
||||
// But adding this check shouldn't hurt and might prevent an endless loop.
|
||||
if (!visible && info.flags == CURSOR_SUPPRESSED)
|
||||
{
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
IsVisible = visible;
|
||||
}
|
||||
|
Reference in New Issue
Block a user