Changeset 3d360758 in mainline


Ignore:
Timestamp:
2009-03-05T22:12:59Z (15 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5ee7377
Parents:
f7734012
Message:

Tetris must ignore key releases.

File:
1 edited

Legend:

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

    rf7734012 r3d360758  
    5959#include <async.h>
    6060#include <ipc/console.h>
     61#include <kbd/kbd.h>
    6162
    6263/* return true iff the given timeval is positive */
     
    112113
    113114        if (!lastchar) {
     115again:
    114116                if (!getchar_inprog) {
    115117                        cons_phone = get_console_phone();
     
    128130                        stop("end of file, help");
    129131                }
     132                if (IPC_GET_ARG1(charcall) == KE_RELEASE)
     133                        goto again;
     134
    130135                lastchar = IPC_GET_ARG4(charcall);
    131136        }
Note: See TracChangeset for help on using the changeset viewer.