src/video/fbcon/SDL_fbevents.c
branchSDL-1.2
changeset 5560 98ae43d3d2f4
parent 5559 9f181779cfdd
child 6137 4720145f848b
equal deleted inserted replaced
5559:9f181779cfdd 5560:98ae43d3d2f4
   514 			if (read(fd, temp, sizeof(temp)) <= 0) {
   514 			if (read(fd, temp, sizeof(temp)) <= 0) {
   515 				break;
   515 				break;
   516 			}
   516 			}
   517 		}
   517 		}
   518 
   518 
   519    		/* Query for the type of mouse protocol */
   519 		/* Query for the type of mouse protocol */
   520    		if ( write(fd, &query_ps2, sizeof (query_ps2)) == sizeof (query_ps2)) {
   520 		if ( write(fd, &query_ps2, sizeof (query_ps2)) == sizeof (query_ps2)) {
   521    			Uint8 ch = 0;
   521 			Uint8 ch = 0;
   522 
   522 
   523 			/* Get the mouse protocol response */
   523 			/* Get the mouse protocol response */
   524 			do {
   524 			do {
   525 				FD_ZERO(&fdset);
   525 				FD_ZERO(&fdset);
   526 				FD_SET(fd, &fdset);
   526 				FD_SET(fd, &fdset);