Changes in uspace/srv/hid/display/input.c [78445be8:8edec53] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/display/input.c
r78445be8 r8edec53 1 1 /* 2 * Copyright (c) 20 19Jiri Svoboda2 * Copyright (c) 2021 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 34 34 35 35 #include <errno.h> 36 #include <inttypes.h> 36 37 #include <io/input.h> 37 38 #include <io/log.h> … … 44 45 static errno_t ds_input_ev_active(input_t *); 45 46 static errno_t ds_input_ev_deactive(input_t *); 46 static errno_t ds_input_ev_key(input_t *, kbd_event_type_t, keycode_t, keymod_t, wchar_t);47 static errno_t ds_input_ev_key(input_t *, kbd_event_type_t, keycode_t, keymod_t, char32_t); 47 48 static errno_t ds_input_ev_move(input_t *, int, int); 48 49 static errno_t ds_input_ev_abs_move(input_t *, unsigned, unsigned, unsigned, unsigned); 49 50 static errno_t ds_input_ev_button(input_t *, int, int); 51 static errno_t ds_input_ev_dclick(input_t *, int); 50 52 51 53 static input_ev_ops_t ds_input_ev_ops = { … … 55 57 .move = ds_input_ev_move, 56 58 .abs_move = ds_input_ev_abs_move, 57 .button = ds_input_ev_button 59 .button = ds_input_ev_button, 60 .dclick = ds_input_ev_dclick 58 61 }; 59 62 … … 69 72 70 73 static errno_t ds_input_ev_key(input_t *input, kbd_event_type_t type, 71 keycode_t key, keymod_t mods, wchar_t c)74 keycode_t key, keymod_t mods, char32_t c) 72 75 { 73 76 ds_display_t *disp = (ds_display_t *) input->user; … … 130 133 131 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; 132 152 event.btn_num = bnum; 133 153 event.dmove.x = 0;
Note:
See TracChangeset
for help on using the changeset viewer.