Changeset 0c25c10 in mainline for uspace/app/tetris/scores.c
- Timestamp:
- 2009-06-03T19:32:07Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 69e68e3
- Parents:
- cbff4c2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tetris/scores.c
rcbff4c2 r0c25c10 56 56 /* #include <stdlib.h> */ 57 57 #include <string.h> 58 #include <kbd/kbd.h> 59 #include <kbd/keycode.h> 58 #include <io/console.h> 59 #include <io/keycode.h> 60 #include <vfs/vfs.h> 60 61 #include <stdlib.h> 61 62 /* #include <time.h> */ … … 128 129 int i,j; 129 130 size_t off; 130 kbd_event_t ev;131 console_event_t ev; 131 132 132 133 clear_screen(); … … 142 143 while (1) { 143 144 fflush(stdout); 144 if ( kbd_get_event(&ev) != EOK)145 if (!console_get_event(fphone(stdin), &ev)) 145 146 exit(1); 146 147 147 if (ev.type == KE _RELEASE)148 if (ev.type == KEY_RELEASE) 148 149 continue; 149 150
Note:
See TracChangeset
for help on using the changeset viewer.