Changeset 8edec53 in mainline for uspace/srv/hid/display/input.c
- Timestamp:
- 2021-10-25T17:51:10Z (2 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/display/input.c
r805a149 r8edec53 1 1 /* 2 * Copyright (c) 20 19Jiri Svoboda2 * Copyright (c) 2021 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 49 49 static errno_t ds_input_ev_abs_move(input_t *, unsigned, unsigned, unsigned, unsigned); 50 50 static errno_t ds_input_ev_button(input_t *, int, int); 51 static errno_t ds_input_ev_dclick(input_t *, int); 51 52 52 53 static input_ev_ops_t ds_input_ev_ops = { … … 56 57 .move = ds_input_ev_move, 57 58 .abs_move = ds_input_ev_abs_move, 58 .button = ds_input_ev_button 59 .button = ds_input_ev_button, 60 .dclick = ds_input_ev_dclick 59 61 }; 60 62 … … 131 133 132 134 event.type = bpress ? PTD_PRESS : PTD_RELEASE; 135 event.btn_num = bnum; 136 event.dmove.x = 0; 137 event.dmove.y = 0; 138 139 ds_display_lock(disp); 140 rc = ds_display_post_ptd_event(disp, &event); 141 ds_display_unlock(disp); 142 return rc; 143 } 144 145 static errno_t ds_input_ev_dclick(input_t *input, int bnum) 146 { 147 ds_display_t *disp = (ds_display_t *) input->user; 148 ptd_event_t event; 149 errno_t rc; 150 151 event.type = PTD_DCLICK; 133 152 event.btn_num = bnum; 134 153 event.dmove.x = 0;
Note:
See TracChangeset
for help on using the changeset viewer.