Changeset ec3b125 in mainline
- Timestamp:
- 2011-12-26T16:12:12Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2552f05f
- Parents:
- d56ab85
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/char/ps2mouse/ps2mouse.c
rd56ab85 rec3b125 174 174 } 175 175 } 176 177 const int move_x = packet[1] * ((packet[0] & X_SIGN) ? -1 : 1); 178 const int move_y = packet[2] * ((packet[0] & Y_SIGN) ? 1 : -1); 176 /* Movement */ 177 const int move_x = ((packet[0] & X_SIGN) 178 ? (int)(int8_t)packet[1] : (int)packet[1]); 179 const int move_y = -((packet[0] & Y_SIGN) 180 ? (int)(int8_t)packet[2] : (int)packet[2]); 179 181 if (move_x != 0 || move_y != 0) { 180 182 async_msg_2(exch, MOUSEEV_MOVE_EVENT, move_x, move_y);
Note:
See TracChangeset
for help on using the changeset viewer.