Changes in uspace/srv/hid/console/console.c [60ebe63:b48e680f] in mainline
- File:
-
- 1 edited
-
uspace/srv/hid/console/console.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/console/console.c
r60ebe63 rb48e680f 1 1 /* 2 * Copyright (c) 202 2Jiri Svoboda2 * Copyright (c) 2021 Jiri Svoboda 3 3 * Copyright (c) 2011 Martin Decky 4 4 * All rights reserved. … … 120 120 static errno_t input_ev_active(input_t *); 121 121 static errno_t input_ev_deactive(input_t *); 122 static errno_t input_ev_key(input_t *, unsigned, kbd_event_type_t, keycode_t, 123 keymod_t, char32_t); 124 static errno_t input_ev_move(input_t *, unsigned, int, int); 125 static errno_t input_ev_abs_move(input_t *, unsigned, unsigned, unsigned, 126 unsigned, unsigned); 127 static errno_t input_ev_button(input_t *, unsigned, int, int); 128 static errno_t input_ev_dclick(input_t *, unsigned, int); 122 static errno_t input_ev_key(input_t *, kbd_event_type_t, keycode_t, keymod_t, char32_t); 123 static errno_t input_ev_move(input_t *, int, int); 124 static errno_t input_ev_abs_move(input_t *, unsigned, unsigned, unsigned, unsigned); 125 static errno_t input_ev_button(input_t *, int, int); 126 static errno_t input_ev_dclick(input_t *, int); 129 127 130 128 static input_ev_ops_t input_ev_ops = { … … 359 357 } 360 358 361 static errno_t input_ev_key(input_t *input, unsigned kbd_id,362 k bd_event_type_t type, keycode_t key, keymod_t mods, char32_t c)359 static errno_t input_ev_key(input_t *input, kbd_event_type_t type, keycode_t key, 360 keymod_t mods, char32_t c) 363 361 { 364 362 cons_event_t event; … … 371 369 event.type = CEV_KEY; 372 370 373 (void)kbd_id;374 371 event.ev.key.type = type; 375 372 event.ev.key.key = key; … … 420 417 } 421 418 422 static errno_t input_ev_move(input_t *input, unsigned pos_id, int dx, int dy) 423 { 424 (void) pos_id; 419 static errno_t input_ev_move(input_t *input, int dx, int dy) 420 { 425 421 pointer_update(pointer_x + dx, pointer_y + dy); 426 422 return EOK; 427 423 } 428 424 429 static errno_t input_ev_abs_move(input_t *input, unsigned pos_id, unsigned x, 430 unsigned y, unsigned max_x, unsigned max_y) 431 { 432 (void)pos_id; 425 static errno_t input_ev_abs_move(input_t *input, unsigned x, unsigned y, 426 unsigned max_x, unsigned max_y) 427 { 433 428 pointer_update(mouse_scale_x * cols * x / max_x, mouse_scale_y * rows * y / max_y); 434 429 return EOK; 435 430 } 436 431 437 static errno_t input_ev_button(input_t *input, unsigned pos_id, int bnum, 438 int bpress) 432 static errno_t input_ev_button(input_t *input, int bnum, int bpress) 439 433 { 440 434 cons_event_t event; 441 442 (void)pos_id;443 435 444 436 event.type = CEV_POS; … … 452 444 } 453 445 454 static errno_t input_ev_dclick(input_t *input, unsigned pos_id,int bnum)446 static errno_t input_ev_dclick(input_t *input, int bnum) 455 447 { 456 448 cons_event_t event; 457 458 (void)pos_id;459 449 460 450 event.type = CEV_POS;
Note:
See TracChangeset
for help on using the changeset viewer.
