Changeset 8edec53 in mainline for uspace/lib/c
- Timestamp:
- 2021-10-25T17:51:10Z (4 years ago)
- Branches:
- master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 91ece11b
- Parents:
- 805a149
- Location:
- uspace/lib/c
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/input.c
r805a149 r8edec53 1 1 /* 2 * Copyright (c) 20 12Jiri Svoboda2 * Copyright (c) 2021 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 164 164 } 165 165 166 static void input_ev_dclick(input_t *input, ipc_call_t *call) 167 { 168 int bnum; 169 errno_t rc; 170 171 bnum = ipc_get_arg1(call); 172 173 rc = input->ev_ops->dclick(input, bnum); 174 async_answer_0(call, rc); 175 } 176 166 177 static void input_cb_conn(ipc_call_t *icall, void *arg) 167 178 { … … 196 207 input_ev_button(input, &call); 197 208 break; 209 case INPUT_EVENT_DCLICK: 210 input_ev_dclick(input, &call); 211 break; 198 212 default: 199 213 async_answer_0(&call, ENOTSUP); -
uspace/lib/c/include/io/input.h
r805a149 r8edec53 1 1 /* 2 * Copyright (c) 20 12Jiri Svoboda2 * Copyright (c) 2021 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 54 54 errno_t (*abs_move)(input_t *, unsigned, unsigned, unsigned, unsigned); 55 55 errno_t (*button)(input_t *, int, int); 56 errno_t (*dclick)(input_t *, int); 56 57 } input_ev_ops_t; 57 58 -
uspace/lib/c/include/io/pos_event.h
r805a149 r8edec53 1 1 /* 2 * Copyright (c) 2021 Jiri Svoboda 2 3 * Copyright (c) 2012 Petr Koupy 3 * Copyright (c) 2013 Jiri Svoboda4 4 * All rights reserved. 5 5 * … … 40 40 41 41 typedef enum { 42 /** Position update */ 42 43 POS_UPDATE, 44 /** Button press */ 43 45 POS_PRESS, 44 POS_RELEASE 46 /** Button release */ 47 POS_RELEASE, 48 /** Double click */ 49 POS_DCLICK 45 50 } pos_event_type_t; 46 51 -
uspace/lib/c/include/ipc/input.h
r805a149 r8edec53 1 1 /* 2 * Copyright (c) 20 11 Jiri Svoboda2 * Copyright (c) 2021 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 48 48 INPUT_EVENT_MOVE, 49 49 INPUT_EVENT_ABS_MOVE, 50 INPUT_EVENT_BUTTON 50 INPUT_EVENT_BUTTON, 51 INPUT_EVENT_DCLICK 51 52 } input_notif_t; 52 53
Note:
See TracChangeset
for help on using the changeset viewer.