Skip to content

Commit

Permalink
New Mac OS X 10.5 code forgot to set the device index for mouse events.
Browse files Browse the repository at this point in the history
Before this fix, all mice looked like mouse #0. Thanks to Nicholas Kingsley
 for reporting _and_ fixing this bug.
  • Loading branch information
icculus committed Apr 7, 2008
1 parent 1ee5079 commit cb51098
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions macosx_hidmanager.c
Expand Up @@ -115,6 +115,7 @@ static void input_callback(void *ctx, IOReturn res,

memset(&ev, '\0', sizeof (ev));
ev.value = (int) value;
ev.device = idx;

if (page == kHIDPage_GenericDesktop)
{
Expand Down

0 comments on commit cb51098

Please sign in to comment.