Changes in uspace/lib/c/generic/io/input.c [60ebe63:8edec53] in mainline
- File:
-
- 1 edited
-
uspace/lib/c/generic/io/input.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/input.c
r60ebe63 r8edec53 1 1 /* 2 * Copyright (c) 202 2Jiri Svoboda2 * Copyright (c) 2021 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 106 106 static void input_ev_key(input_t *input, ipc_call_t *call) 107 107 { 108 unsigned kbd_id;109 108 kbd_event_type_t type; 110 109 keycode_t key; … … 113 112 errno_t rc; 114 113 115 kbd_id = ipc_get_arg1(call); 116 type = ipc_get_arg2(call); 117 key = ipc_get_arg3(call); 118 mods = ipc_get_arg4(call); 119 c = ipc_get_arg5(call); 120 121 rc = input->ev_ops->key(input, kbd_id, type, key, mods, c); 114 type = ipc_get_arg1(call); 115 key = ipc_get_arg2(call); 116 mods = ipc_get_arg3(call); 117 c = ipc_get_arg4(call); 118 119 rc = input->ev_ops->key(input, type, key, mods, c); 122 120 async_answer_0(call, rc); 123 121 } … … 125 123 static void input_ev_move(input_t *input, ipc_call_t *call) 126 124 { 127 unsigned pos_id;128 125 int dx; 129 126 int dy; 130 127 errno_t rc; 131 128 132 pos_id = ipc_get_arg1(call); 133 dx = ipc_get_arg2(call); 134 dy = ipc_get_arg3(call); 135 136 rc = input->ev_ops->move(input, pos_id, dx, dy); 129 dx = ipc_get_arg1(call); 130 dy = ipc_get_arg2(call); 131 132 rc = input->ev_ops->move(input, dx, dy); 137 133 async_answer_0(call, rc); 138 134 } … … 140 136 static void input_ev_abs_move(input_t *input, ipc_call_t *call) 141 137 { 142 unsigned pos_id;143 138 unsigned x; 144 139 unsigned y; … … 147 142 errno_t rc; 148 143 149 pos_id = ipc_get_arg1(call); 150 x = ipc_get_arg2(call); 151 y = ipc_get_arg3(call); 152 max_x = ipc_get_arg4(call); 153 max_y = ipc_get_arg5(call); 154 155 rc = input->ev_ops->abs_move(input, pos_id, x, y, max_x, max_y); 144 x = ipc_get_arg1(call); 145 y = ipc_get_arg2(call); 146 max_x = ipc_get_arg3(call); 147 max_y = ipc_get_arg4(call); 148 149 rc = input->ev_ops->abs_move(input, x, y, max_x, max_y); 156 150 async_answer_0(call, rc); 157 151 } … … 159 153 static void input_ev_button(input_t *input, ipc_call_t *call) 160 154 { 161 unsigned pos_id;162 155 int bnum; 163 156 int press; 164 157 errno_t rc; 165 158 166 pos_id = ipc_get_arg1(call); 167 bnum = ipc_get_arg2(call); 168 press = ipc_get_arg3(call); 169 170 rc = input->ev_ops->button(input, pos_id, bnum, press); 159 bnum = ipc_get_arg1(call); 160 press = ipc_get_arg2(call); 161 162 rc = input->ev_ops->button(input, bnum, press); 171 163 async_answer_0(call, rc); 172 164 } … … 174 166 static void input_ev_dclick(input_t *input, ipc_call_t *call) 175 167 { 176 unsigned pos_id;177 168 int bnum; 178 169 errno_t rc; 179 170 180 pos_id = ipc_get_arg1(call); 181 bnum = ipc_get_arg2(call); 182 183 rc = input->ev_ops->dclick(input, pos_id, bnum); 171 bnum = ipc_get_arg1(call); 172 173 rc = input->ev_ops->dclick(input, bnum); 184 174 async_answer_0(call, rc); 185 175 }
Note:
See TracChangeset
for help on using the changeset viewer.
