Mercurial > sdl-ios-xcode
comparison src/video/fbcon/SDL_fbevents.c @ 60:e093bbc72ab9
*** empty log message ***
author | Sam Lantinga <slouken@lokigames.com> |
---|---|
date | Mon, 11 Jun 2001 22:54:34 +0000 |
parents | b685c94f8db7 |
children | 280ff3af2ecc |
comparison
equal
deleted
inserted
replaced
59:b685c94f8db7 | 60:e093bbc72ab9 |
---|---|
442 { | 442 { |
443 int imps2; | 443 int imps2; |
444 | 444 |
445 imps2 = 0; | 445 imps2 = 0; |
446 | 446 |
447 /* rcg06112001 Attempt to set IMPS/2 mode first, even with envr var... */ | |
448 set_imps2_mode(fd); | |
449 | |
450 if ( getenv("SDL_MOUSEDEV_IMPS2") ) { | 447 if ( getenv("SDL_MOUSEDEV_IMPS2") ) { |
451 imps2 = 1; | 448 imps2 = 1; |
452 } | 449 } |
453 if ( ! imps2 ) { | 450 if ( ! imps2 ) { |
454 Uint8 query_ps2 = 0xF2; | 451 Uint8 query_ps2 = 0xF2; |
542 mouse_fd = open("/dev/input/mice", O_RDWR, 0); | 539 mouse_fd = open("/dev/input/mice", O_RDWR, 0); |
543 if (mouse_fd < 0) { | 540 if (mouse_fd < 0) { |
544 mouse_fd = open("/dev/input/mice", O_RDONLY, 0); | 541 mouse_fd = open("/dev/input/mice", O_RDONLY, 0); |
545 } | 542 } |
546 if (mouse_fd >= 0) { | 543 if (mouse_fd >= 0) { |
544 /* rcg06112001 Attempt to set IMPS/2 mode first, even with envr var... */ | |
545 set_imps2_mode(mouse_fd); | |
546 | |
547 if (detect_imps2(mouse_fd)) { | 547 if (detect_imps2(mouse_fd)) { |
548 mouse_drv = MOUSE_IMPS2; | 548 mouse_drv = MOUSE_IMPS2; |
549 } else { | 549 } else { |
550 mouse_drv = MOUSE_PS2; | 550 mouse_drv = MOUSE_PS2; |
551 } | 551 } |