Rev 1717 | Rev 1723 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1717 | Rev 1721 | ||
---|---|---|---|
Line 215... | Line 215... | ||
215 | connection_t *conn; |
215 | connection_t *conn; |
216 | static int console_pixmap = -1; |
216 | static int console_pixmap = -1; |
217 | int i, j, rc; |
217 | int i, j, rc; |
218 | keyfield_t *field; |
218 | keyfield_t *field; |
219 | style_t *style; |
219 | style_t *style; |
220 | char c; |
- | |
221 | 220 | ||
222 | if (newcons == active_console) |
221 | if (newcons == active_console) |
223 | return; |
222 | return; |
224 | 223 | ||
225 | if (newcons == KERNEL_CONSOLE) { |
224 | if (newcons == KERNEL_CONSOLE) { |
Line 307... | Line 306... | ||
307 | return; |
306 | return; |
308 | case KBD_MS_LEFT: |
307 | case KBD_MS_LEFT: |
309 | newcon = gcons_mouse_btn(IPC_GET_ARG1(call)); |
308 | newcon = gcons_mouse_btn(IPC_GET_ARG1(call)); |
310 | if (newcon != -1) |
309 | if (newcon != -1) |
311 | change_console(newcon); |
310 | change_console(newcon); |
- | 311 | retval = 0; |
|
312 | break; |
312 | break; |
313 | case KBD_MS_MOVE: |
313 | case KBD_MS_MOVE: |
314 | gcons_mouse_move(IPC_GET_ARG1(call), IPC_GET_ARG2(call)); |
314 | gcons_mouse_move(IPC_GET_ARG1(call), IPC_GET_ARG2(call)); |
- | 315 | retval = 0; |
|
315 | break; |
316 | break; |
316 | case KBD_PUSHCHAR: |
317 | case KBD_PUSHCHAR: |
317 | /* got key from keyboard driver */ |
318 | /* got key from keyboard driver */ |
318 | 319 | ||
319 | retval = 0; |
320 | retval = 0; |
Line 335... | Line 336... | ||
335 | conn->keyrequest_counter--; |
336 | conn->keyrequest_counter--; |
336 | ipc_answer_fast(fifo_pop(conn->keyrequests), 0, c, 0); |
337 | ipc_answer_fast(fifo_pop(conn->keyrequests), 0, c, 0); |
337 | break; |
338 | break; |
338 | } |
339 | } |
339 | 340 | ||
340 | /*FIXME: else store key to its buffer */ |
- | |
341 | keybuffer_push(&conn->keybuffer, c); |
341 | keybuffer_push(&conn->keybuffer, c); |
- | 342 | retval = 0; |
|
342 | 343 | ||
343 | break; |
344 | break; |
344 | default: |
345 | default: |
345 | retval = ENOENT; |
346 | retval = ENOENT; |
346 | } |
347 | } |
Line 454... | Line 455... | ||
454 | } |
455 | } |
455 | 456 | ||
456 | int main(int argc, char *argv[]) |
457 | int main(int argc, char *argv[]) |
457 | { |
458 | { |
458 | ipcarg_t phonehash; |
459 | ipcarg_t phonehash; |
459 | int kbd_phone, fb_phone; |
460 | int kbd_phone; |
460 | ipcarg_t retval, arg1 = 0xdead, arg2 = 0xbeef; |
- | |
461 | int i; |
461 | int i; |
462 | 462 | ||
463 | async_set_client_connection(client_connection); |
463 | async_set_client_connection(client_connection); |
464 | 464 | ||
465 | /* Connect to keyboard driver */ |
465 | /* Connect to keyboard driver */ |