Mercurial > sdl-ios-xcode
comparison src/video/ps2gs/SDL_gsevents.c @ 2669:e27bdcc80744 gsoc2008_nds
First commit. Added header configs for DS as well as a Makefile. Initial work on framebuffer video driver, currently not functioning as desired.
author | Darren Alton <dalton@stevens.edu> |
---|---|
date | Tue, 10 Jun 2008 06:45:39 +0000 |
parents | c121d94672cb |
children | 99210400e8b9 |
comparison
equal
deleted
inserted
replaced
2668:bb3241de289e | 2669:e27bdcc80744 |
---|---|
477 tv.tv_sec = 1; | 477 tv.tv_sec = 1; |
478 tv.tv_usec = 0; | 478 tv.tv_usec = 0; |
479 if (select(fd + 1, &fdset, 0, 0, &tv) < 1) { | 479 if (select(fd + 1, &fdset, 0, 0, &tv) < 1) { |
480 break; | 480 break; |
481 } | 481 } |
482 } | 482 } while ((read(fd, &ch, sizeof(ch)) == sizeof(ch)) && |
483 while ((read(fd, &ch, sizeof(ch)) == sizeof(ch)) && | 483 ((ch == 0xFA) || (ch == 0xAA))); |
484 ((ch == 0xFA) || (ch == 0xAA))); | |
485 | 484 |
486 /* Experimental values (Logitech wheelmouse) */ | 485 /* Experimental values (Logitech wheelmouse) */ |
487 #ifdef DEBUG_MOUSE | 486 #ifdef DEBUG_MOUSE |
488 fprintf(stderr, "Last mouse mode: 0x%x\n", ch); | 487 fprintf(stderr, "Last mouse mode: 0x%x\n", ch); |
489 #endif | 488 #endif |
831 if (FD_ISSET(mouse_fd, &fdset)) { | 830 if (FD_ISSET(mouse_fd, &fdset)) { |
832 handle_mouse(this); | 831 handle_mouse(this); |
833 } | 832 } |
834 } | 833 } |
835 } | 834 } |
836 } | 835 } while (posted); |
837 while (posted); | |
838 } | 836 } |
839 | 837 |
840 void | 838 void |
841 GS_InitOSKeymap(_THIS) | 839 GS_InitOSKeymap(_THIS) |
842 { | 840 { |