Changeset 192565b in mainline for uspace/dist/src/c/demos/top/screen.c


Ignore:
Timestamp:
2013-05-27T13:18:13Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f2c19b0
Parents:
d120133 (diff), c90aed4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/dist/src/c/demos/top/screen.c

    rd120133 r192565b  
    553553       
    554554        while (c == 0) {
    555                 kbd_event_t event;
    556                
    557                 if (!console_get_kbd_event_timeout(console, &event, &timeleft)) {
     555                cons_event_t event;
     556               
     557                if (!console_get_event_timeout(console, &event, &timeleft)) {
    558558                        timeleft = 0;
    559559                        return -1;
    560560                }
    561561               
    562                 if (event.type == KEY_PRESS)
    563                         c = event.c;
     562                if (event.type == CEV_KEY && event.ev.key.type == KEY_PRESS)
     563                        c = event.ev.key.c;
    564564        }
    565565       
Note: See TracChangeset for help on using the changeset viewer.