static int tm_check( unsigned short *status, MOUSEORD *row, MOUSEORD *col, unsigned long *the_time ) /**********************************************/ { if( !MouseInstalled ) { uisetmouse(*row, *col); return 0; } UIDebugPrintf1( "mouse_string = '%s'", buf ); if( new_sample ) { switch( MouseType ) { case M_XT: XT_parse(); break; #ifdef __LINUX__ case M_GPM: GPM_parse(); break; #endif case M_NONE: break; } new_sample = 0; } *row = last_row; *col = last_col; *status = last_status; *the_time = (long)time( NULL ) * 1000L; uisetmouse(*row, *col); return 0; }
static int tm_check( unsigned short *status, unsigned short *row, unsigned short *col, unsigned long *time ) /**********************************************************************************************************/ { if( !MouseInstalled ) { uisetmouse( *row, *col ); return( 0 ); } QNXDebugPrintf1("mouse_string = '%s'", buf); if( new_sample ) { switch( MouseType ) { case M_QW: case M_AW: QW_parse(); break; case M_XT: XT_parse(); break; } new_sample = 0; } *row = last_row; *col = last_col; *status = last_status; *time = GET_MSECS; uisetmouse( *row, *col ); return( 0 ); }