-/* $Id: stubs.c,v 1.27 2003/07/27 11:54:42 dwelch Exp $
+/* $Id: stubs.c,v 1.28 2003/08/02 16:56:13 gdalsnes Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS user32.dll
}
-/*
- * @unimplemented
- */
-DWORD
-STDCALL
-GetQueueStatus(
- UINT flags)
-{
- UNIMPLEMENTED;
- return 0;
-}
-
-
/*
* @unimplemented
*/
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: input.c,v 1.9 2003/07/20 05:32:19 jimtabor Exp $
+/* $Id: input.c,v 1.10 2003/08/02 16:55:59 gdalsnes Exp $
*
* PROJECT: ReactOS user32.dll
* FILE: lib/user32/windows/input.c
}
-/*
- * @unimplemented
- */
-WINBOOL STDCALL GetInputState(VOID)
-{
- UNIMPLEMENTED;
- return FALSE;
-}
-
-
/*
* @unimplemented
*/
-/* $Id: message.c,v 1.21 2003/08/01 18:45:35 dwelch Exp $
+/* $Id: message.c,v 1.22 2003/08/02 16:55:59 gdalsnes Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS user32.dll
}
+/*
+ * @unimplemented
+ */
+DWORD
+STDCALL
+GetQueueStatus(UINT flags)
+{
+ DWORD ret;
+ WORD changed_bits, wake_bits;
+
+#if 0 /* wine stuff. don't know what it does... */
+
+ /* check for pending X events */
+ if (USER_Driver.pMsgWaitForMultipleObjectsEx)
+ USER_Driver.pMsgWaitForMultipleObjectsEx( 0, NULL, 0, 0, 0 );
+#endif
+
+ ret = NtUserGetQueueStatus(TRUE /*ClearChanges*/);
+
+ changed_bits = LOWORD(ret);
+ wake_bits = HIWORD(ret);
+
+ return MAKELONG(changed_bits & flags, wake_bits & flags);
+}
+
+
+/*
+ * @unimplemented
+ */
+WINBOOL STDCALL GetInputState(VOID)
+{
+ DWORD ret;
+ WORD wake_bits;
+
+#if 0 /* wine stuff. don't know what it does... */
+
+ /* check for pending X events */
+ if (USER_Driver.pMsgWaitForMultipleObjectsEx)
+ USER_Driver.pMsgWaitForMultipleObjectsEx( 0, NULL, 0, 0, 0 );
+#endif
+
+ ret = NtUserGetQueueStatus(FALSE /*ClearChanges*/);
+
+ wake_bits = HIWORD(ret);
+
+ return wake_bits & (QS_KEY | QS_MOUSEBUTTON);
+}
+
/* EOF */