Changeset 0c25c10 in mainline for uspace/app/tetris/scores.c


Ignore:
Timestamp:
2009-06-03T19:32:07Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
69e68e3
Parents:
cbff4c2
Message:

update for latest I/O changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tetris/scores.c

    rcbff4c2 r0c25c10  
    5656/* #include <stdlib.h> */
    5757#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>
    6061#include <stdlib.h>
    6162/* #include <time.h> */
     
    128129        int i,j;
    129130        size_t off;
    130         kbd_event_t ev;
     131        console_event_t ev;
    131132       
    132133        clear_screen();
     
    142143        while (1) {
    143144                fflush(stdout);
    144                 if (kbd_get_event(&ev) != EOK)
     145                if (!console_get_event(fphone(stdin), &ev))
    145146                        exit(1);
    146147
    147                 if (ev.type == KE_RELEASE)
     148                if (ev.type == KEY_RELEASE)
    148149                        continue;
    149150
Note: See TracChangeset for help on using the changeset viewer.