comparison src/video/fbcon/SDL_fbevents.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 e1da92da346c
comparison
equal deleted inserted replaced
2668:bb3241de289e 2669:e27bdcc80744
543 tv.tv_sec = 1; 543 tv.tv_sec = 1;
544 tv.tv_usec = 0; 544 tv.tv_usec = 0;
545 if (select(fd + 1, &fdset, 0, 0, &tv) < 1) { 545 if (select(fd + 1, &fdset, 0, 0, &tv) < 1) {
546 break; 546 break;
547 } 547 }
548 } 548 } while ((read(fd, &ch, sizeof(ch)) == sizeof(ch)) &&
549 while ((read(fd, &ch, sizeof(ch)) == sizeof(ch)) && 549 ((ch == 0xFA) || (ch == 0xAA)));
550 ((ch == 0xFA) || (ch == 0xAA)));
551 550
552 /* Experimental values (Logitech wheelmouse) */ 551 /* Experimental values (Logitech wheelmouse) */
553 #ifdef DEBUG_MOUSE 552 #ifdef DEBUG_MOUSE
554 fprintf(stderr, "Last mouse mode: 0x%x\n", ch); 553 fprintf(stderr, "Last mouse mode: 0x%x\n", ch);
555 #endif 554 #endif
1111 if (FD_ISSET(mouse_fd, &fdset)) { 1110 if (FD_ISSET(mouse_fd, &fdset)) {
1112 handle_mouse(this); 1111 handle_mouse(this);
1113 } 1112 }
1114 } 1113 }
1115 } 1114 }
1116 } 1115 } while (posted);
1117 while (posted);
1118 } 1116 }
1119 1117
1120 void 1118 void
1121 FB_InitOSKeymap(_THIS) 1119 FB_InitOSKeymap(_THIS)
1122 { 1120 {