Changeset 60ebe63 in mainline for uspace/srv/hid/console/console.c
- Timestamp:
- 2022-11-08T21:20:23Z (2 years ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7bcd15f
- Parents:
- 3a6d44b7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/console/console.c
r3a6d44b7 r60ebe63 1 1 /* 2 * Copyright (c) 202 1Jiri Svoboda2 * Copyright (c) 2022 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 *, 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); 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); 127 129 128 130 static input_ev_ops_t input_ev_ops = { … … 357 359 } 358 360 359 static errno_t input_ev_key(input_t *input, kbd_event_type_t type, keycode_t key,360 k eymod_t mods, char32_t c)361 static errno_t input_ev_key(input_t *input, unsigned kbd_id, 362 kbd_event_type_t type, keycode_t key, keymod_t mods, char32_t c) 361 363 { 362 364 cons_event_t event; … … 369 371 event.type = CEV_KEY; 370 372 373 (void)kbd_id; 371 374 event.ev.key.type = type; 372 375 event.ev.key.key = key; … … 417 420 } 418 421 419 static errno_t input_ev_move(input_t *input, int dx, int dy) 420 { 422 static errno_t input_ev_move(input_t *input, unsigned pos_id, int dx, int dy) 423 { 424 (void) pos_id; 421 425 pointer_update(pointer_x + dx, pointer_y + dy); 422 426 return EOK; 423 427 } 424 428 425 static errno_t input_ev_abs_move(input_t *input, unsigned x, unsigned y, 426 unsigned max_x, unsigned max_y) 427 { 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; 428 433 pointer_update(mouse_scale_x * cols * x / max_x, mouse_scale_y * rows * y / max_y); 429 434 return EOK; 430 435 } 431 436 432 static errno_t input_ev_button(input_t *input, int bnum, int bpress) 437 static errno_t input_ev_button(input_t *input, unsigned pos_id, int bnum, 438 int bpress) 433 439 { 434 440 cons_event_t event; 441 442 (void)pos_id; 435 443 436 444 event.type = CEV_POS; … … 444 452 } 445 453 446 static errno_t input_ev_dclick(input_t *input, int bnum)454 static errno_t input_ev_dclick(input_t *input, unsigned pos_id, int bnum) 447 455 { 448 456 cons_event_t event; 457 458 (void)pos_id; 449 459 450 460 event.type = CEV_POS;
Note:
See TracChangeset
for help on using the changeset viewer.