*** empty log message ***
authorSam Lantinga <slouken@lokigames.com>
Mon, 11 Jun 2001 22:54:34 +0000
changeset 60 e093bbc72ab9
parent 59 b685c94f8db7
child 61 994ed1d668e7
*** empty log message ***
src/video/fbcon/SDL_fbevents.c
--- a/src/video/fbcon/SDL_fbevents.c	Mon Jun 11 15:48:32 2001 +0000
+++ b/src/video/fbcon/SDL_fbevents.c	Mon Jun 11 22:54:34 2001 +0000
@@ -444,9 +444,6 @@
 
 	imps2 = 0;
 
-	/* rcg06112001 Attempt to set IMPS/2 mode first, even with envr var... */
-	set_imps2_mode(fd);
-
 	if ( getenv("SDL_MOUSEDEV_IMPS2") ) {
 		imps2 = 1;
 	}
@@ -544,6 +541,9 @@
 				mouse_fd = open("/dev/input/mice", O_RDONLY, 0);
 			}
 			if (mouse_fd >= 0) {
+				/* rcg06112001 Attempt to set IMPS/2 mode first, even with envr var... */
+				set_imps2_mode(mouse_fd);
+
 				if (detect_imps2(mouse_fd)) {
 					mouse_drv = MOUSE_IMPS2;
 				} else {