2 /////////////////////////////////////////////////////////////////////////////
5 // Copyright (c) 2000 - Rosimildo da Silva
8 // This module implements the "GsSelect()" function for Nano-X.
10 // MODIFICATION/HISTORY:
13 // Revision 1.1.9.1 2009-06-15 14:11:00 lothar
14 // unified MX27, MX25, MX37 trees
16 // Revision 1.1.1.1 2001/06/21 06:32:41 greg
17 // Microwindows pre8 with patches
19 // Revision 1.1.1.1 2001/06/05 03:44:01 root
20 // First import of 5/5/2001 Microwindows to CVS
23 /////////////////////////////////////////////////////////////////////////////
29 #include <rtems/mw_uid.h>
32 /* defined in input_rtems.c */
33 extern struct MW_UID_MESSAGE m_kbd;
34 extern struct MW_UID_MESSAGE m_mou;
40 struct MW_UID_MESSAGE m;
42 unsigned int timeout = 10;
44 /* perform pre-select duties, if any*/
47 scrdev.PreSelect(&scrdev);
50 /* let's make sure that the type is invalid */
51 m.type = MV_UID_INVALID;
53 /* wait up to 100 milisecons for events */
54 rc = uid_read_message( &m, timeout );
56 /* return if timed-out or something went wrong */
59 if( errno != ETIMEDOUT )
60 EPRINTF( " rc= %d, errno=%d\n", rc, errno );
63 /* timeout handling */
69 /* let's pass the event up to microwindows */
72 /* Mouse or Touch Screen event */
76 while(GsCheckMouseEvent())
83 GsCheckKeyboardEvent();
86 /* micro-windows does nothing with those.. */