Mercurial > sdl-ios-xcode
diff src/video/fbcon/SDL_fbevents.c @ 2735:204be4fc2726
Final merge of Google Summer of Code 2008 work...
Port SDL 1.3 to the Nintendo DS
by Darren Alton, mentored by Sam Lantinga
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 27 Aug 2008 15:10:03 +0000 |
parents | c121d94672cb |
children | 99210400e8b9 |
line wrap: on
line diff
--- a/src/video/fbcon/SDL_fbevents.c Wed Aug 27 13:37:19 2008 +0000 +++ b/src/video/fbcon/SDL_fbevents.c Wed Aug 27 15:10:03 2008 +0000 @@ -545,9 +545,8 @@ if (select(fd + 1, &fdset, 0, 0, &tv) < 1) { break; } - } - while ((read(fd, &ch, sizeof(ch)) == sizeof(ch)) && - ((ch == 0xFA) || (ch == 0xAA))); + } while ((read(fd, &ch, sizeof(ch)) == sizeof(ch)) && + ((ch == 0xFA) || (ch == 0xAA))); /* Experimental values (Logitech wheelmouse) */ #ifdef DEBUG_MOUSE @@ -970,6 +969,7 @@ ioctl(keyboard_fd, KDSETMODE, KD_TEXT); ioctl(keyboard_fd, VT_UNLOCKSWITCH, 1); } + static void switch_vt_done(_THIS) { @@ -995,6 +995,7 @@ (SDL_APPACTIVE | SDL_APPINPUTFOCUS | SDL_APPMOUSEFOCUS)); } + static void switch_vt(_THIS, unsigned short which) { @@ -1113,8 +1114,7 @@ } } } - } - while (posted); + } while (posted); } void