Changeset edb3cf2 in mainline for uspace/srv/hid/input/generic/input.c
- Timestamp:
- 2011-12-28T11:46:33Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 70172dc4
- Parents:
- acac2ef
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/generic/input.c
racac2ef redb3cf2 172 172 173 173 /** Mouse pointer has moved. */ 174 void mouse_push_event_move(mouse_dev_t *mdev, int dx, int dy )174 void mouse_push_event_move(mouse_dev_t *mdev, int dx, int dy, int dz) 175 175 { 176 176 async_exch_t *exch = async_exchange_begin(client_sess); 177 async_msg_2(exch, INPUT_EVENT_MOVE, dx, dy); 177 if (dx || dy) 178 async_msg_2(exch, INPUT_EVENT_MOVE, dx, dy); 179 if (dz) { 180 keycode_t code = dz > 0 ? KC_UP : KC_DOWN; 181 for (int i = 0; i < 3; ++i) { 182 async_msg_4(exch, INPUT_EVENT_KEY, KEY_PRESS, code, 0, 0); 183 } 184 async_msg_4(exch, INPUT_EVENT_KEY, KEY_RELEASE, code, 0, 0); 185 } 178 186 async_exchange_end(exch); 179 187 }
Note:
See TracChangeset
for help on using the changeset viewer.