Changeset 8edec53 in mainline for uspace/srv/hid/console/console.c
- Timestamp:
- 2021-10-25T17:51:10Z (3 years ago)
- Branches:
- master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 91ece11b
- Parents:
- 805a149
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/console/console.c
r805a149 r8edec53 124 124 static errno_t input_ev_abs_move(input_t *, unsigned, unsigned, unsigned, unsigned); 125 125 static errno_t input_ev_button(input_t *, int, int); 126 static errno_t input_ev_dclick(input_t *, int); 126 127 127 128 static input_ev_ops_t input_ev_ops = { … … 131 132 .move = input_ev_move, 132 133 .abs_move = input_ev_abs_move, 133 .button = input_ev_button 134 .button = input_ev_button, 135 .dclick = input_ev_dclick 134 136 }; 135 137 … … 440 442 } 441 443 444 static errno_t input_ev_dclick(input_t *input, int bnum) 445 { 446 cons_event_t event; 447 448 event.type = CEV_POS; 449 event.ev.pos.type = POS_DCLICK; 450 event.ev.pos.btn_num = bnum; 451 event.ev.pos.hpos = pointer_x / mouse_scale_x; 452 event.ev.pos.vpos = pointer_y / mouse_scale_y; 453 454 console_queue_cons_event(active_console, &event); 455 return EOK; 456 } 457 442 458 /** Process a character from the client (TTY emulation). */ 443 459 static void cons_write_char(console_t *cons, char32_t ch)
Note:
See TracChangeset
for help on using the changeset viewer.