src/video/fbcon/SDL_fbevents.c
changeset 1584 b786d9c15e42
parent 1582 43a565749fbf
child 1585 980d2a0dc2a3
--- a/src/video/fbcon/SDL_fbevents.c	Wed Mar 22 07:10:38 2006 +0000
+++ b/src/video/fbcon/SDL_fbevents.c	Wed Mar 22 07:22:40 2006 +0000
@@ -420,9 +420,11 @@
 	int retval = 0;
 
 	if ( write(fd, &set_imps2, sizeof(set_imps2)) == sizeof(set_imps2) ) {
+		/* Don't reset it, that'll clear IMPS/2 mode on some mice
 		if (write(fd, &reset, sizeof (reset)) == sizeof (reset) ) {
 			retval = 1;
 		}
+		*/
 	}
 
 	/* Get rid of any chatter from the above */
@@ -545,7 +547,7 @@
 
 	if ( mousedev == NULL ) {
 		/* FIXME someday... allow multiple mice in this driver */
-		static const char * const ps2mice[] = {
+		static const char *ps2mice[] = {
 		    "/dev/input/mice", "/dev/usbmouse", "/dev/psaux", NULL
 		};
 		/* First try to use GPM in repeater mode */
@@ -568,9 +570,7 @@
 			}
 			if (mouse_fd >= 0) {
 				/* rcg06112001 Attempt to set IMPS/2 mode */
-				if ( i == 0 ) {
-					set_imps2_mode(mouse_fd);
-				}
+				set_imps2_mode(mouse_fd);
 				if (detect_imps2(mouse_fd)) {
 #ifdef DEBUG_MOUSE
 fprintf(stderr, "Using IMPS2 mouse\n");