Changeset 4e4052b in mainline for uspace/app/tetris/input.c


Ignore:
Timestamp:
2008-07-09T08:16:51Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5719f6d
Parents:
f93f168
Message:

Fix tetris :) - expecting console at a fixed phone number

File:
1 edited

Legend:

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

    rf93f168 r4e4052b  
    9797        static ipc_call_t charcall;
    9898        ipcarg_t rc;
     99        int cons_phone;
    99100
    100101        /*
     
    111112
    112113        if (!lastchar) {
    113                 if (!getchar_inprog)
    114                         getchar_inprog = async_send_2(1,CONSOLE_GETCHAR,0,0,&charcall);
     114                if (!getchar_inprog) {
     115                        cons_phone = get_cons_phone();
     116                        getchar_inprog = async_send_2(cons_phone,
     117                            CONSOLE_GETCHAR, 0, 0, &charcall);
     118                }
    115119                if (!s)
    116120                        async_wait_for(getchar_inprog, &rc);
Note: See TracChangeset for help on using the changeset viewer.