Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 204390
b: refs/heads/master
c: 7d876c0
h: refs/heads/master
v: v3
  • Loading branch information
Michael Poole authored and Jiri Kosina committed Jul 11, 2010
1 parent bcc0a16 commit bf86549
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e3612e8669b8c15278058f8dd52e3dc6e7d26710
refs/heads/master: 7d876c05fa6cf82f0274f27276d981ed325697a5
4 changes: 2 additions & 2 deletions trunk/drivers/hid/hid-magicmouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ static int magicmouse_raw_event(struct hid_device *hdev,
* to have the current touch information before
* generating a click event.
*/
x = (signed char)data[1];
y = (signed char)data[2];
x = (int)(((data[3] & 0x0c) << 28) | (data[1] << 22)) >> 22;
y = (int)(((data[3] & 0x30) << 26) | (data[2] << 22)) >> 22;
clicks = data[3];
break;
case 0x20: /* Theoretically battery status (0-100), but I have
Expand Down

0 comments on commit bf86549

Please sign in to comment.