Added IsUserIdle16().

This commit is contained in:
Ulrich Weigand 1999-05-22 19:00:27 +00:00 committed by Alexandre Julliard
parent 5c982c90d2
commit 5cd4737854

View File

@ -539,6 +539,25 @@ WORD WINAPI GetAsyncKeyState16(INT16 nKey)
return GetAsyncKeyState(nKey);
}
/***********************************************************************
* IsUserIdle (USER.333)
*/
BOOL16 WINAPI IsUserIdle16(void)
{
if ( GetAsyncKeyState( VK_LBUTTON ) & 0x8000 )
return FALSE;
if ( GetAsyncKeyState( VK_RBUTTON ) & 0x8000 )
return FALSE;
if ( GetAsyncKeyState( VK_MBUTTON ) & 0x8000 )
return FALSE;
/* Should check for screen saver activation here ... */
return TRUE;
}
/**********************************************************************
* KBD_translate_accelerator
*