Rev 4156 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4156 | Rev 4201 | ||
---|---|---|---|
Line 40... | Line 40... | ||
40 | #include <console.h> |
40 | #include <console.h> |
41 | #include <async.h> |
41 | #include <async.h> |
42 | 42 | ||
43 | int kbd_get_event(kbd_event_t *ev) |
43 | int kbd_get_event(kbd_event_t *ev) |
44 | { |
44 | { |
45 | int cons_phone = console_phone_get(); |
45 | int cons_phone = console_phone_get(true); |
46 | ipcarg_t r0, r1, r2, r3; |
46 | ipcarg_t r0, r1, r2, r3; |
47 | int rc; |
47 | int rc; |
48 | 48 | ||
49 | if (cons_phone < 0) |
- | |
50 | return -1; |
- | |
51 | - | ||
52 | rc = async_req_0_4(cons_phone, CONSOLE_GETKEY, &r0, &r1, &r2, &r3); |
49 | rc = async_req_0_4(cons_phone, CONSOLE_GETKEY, &r0, &r1, &r2, &r3); |
53 | if (rc < 0) |
50 | if (rc < 0) |
54 | return -1; |
51 | return -1; |
55 | 52 | ||
56 | ev->type = r0; |
53 | ev->type = r0; |