Changeset 0cc4313 in mainline for uspace/srv/kbd/arch/ia32/src/mouse.c
- Timestamp:
- 2007-11-22T15:50:24Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d40a8ff
- Parents:
- 8498915
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/kbd/arch/ia32/src/mouse.c
r8498915 r0cc4313 95 95 if (buf.u.val.leftbtn ^ leftbtn) { 96 96 leftbtn = buf.u.val.leftbtn; 97 async_msg (phoneid, KBD_MS_LEFT, leftbtn);97 async_msg_1(phoneid, KBD_MS_LEFT, leftbtn); 98 98 } 99 99 if (buf.u.val.rightbtn & rightbtn) { 100 100 rightbtn = buf.u.val.middlebtn; 101 async_msg (phoneid, KBD_MS_RIGHT, rightbtn);101 async_msg_1(phoneid, KBD_MS_RIGHT, rightbtn); 102 102 } 103 103 if (buf.u.val.rightbtn & rightbtn) { 104 104 middlebtn = buf.u.val.middlebtn; 105 async_msg (phoneid, KBD_MS_MIDDLE, middlebtn);105 async_msg_1(phoneid, KBD_MS_MIDDLE, middlebtn); 106 106 } 107 107 x = bit9toint(buf.u.val.xsign, buf.u.val.x); 108 108 y = bit9toint(buf.u.val.ysign, buf.u.val.y); 109 109 if (x || y) 110 async_msg_2(phoneid, KBD_MS_MOVE, (ipcarg_t)x, (ipcarg_t)(-y)); 110 async_msg_2(phoneid, KBD_MS_MOVE, (ipcarg_t)x, 111 (ipcarg_t)(-y)); 111 112 } 112 113 }
Note:
See TracChangeset
for help on using the changeset viewer.