Skip to content

Commit

Permalink
Mac OS X joystick calibration code should start with device-specified…
Browse files Browse the repository at this point in the history
… bounds.

  Fixes Bugzilla #344.
  • Loading branch information
icculus committed May 29, 2007
1 parent a0054e1 commit 9eb4022
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/joystick/darwin/SDL_sysjoystick.c
Expand Up @@ -241,12 +241,10 @@ static void HIDGetElementInfo (CFTypeRef refElement, recElement *pElement)
pElement->cookie = (IOHIDElementCookie) number;
refType = CFDictionaryGetValue (refElement, CFSTR(kIOHIDElementMinKey));
if (refType && CFNumberGetValue (refType, kCFNumberLongType, &number))
pElement->min = number;
pElement->maxReport = pElement->min;
pElement->minReport = pElement->min = number;
refType = CFDictionaryGetValue (refElement, CFSTR(kIOHIDElementMaxKey));
if (refType && CFNumberGetValue (refType, kCFNumberLongType, &number))
pElement->max = number;
pElement->minReport = pElement->max;
pElement->maxReport = pElement->max = number;
/*
TODO: maybe should handle the following stuff somehow?
Expand Down

0 comments on commit 9eb4022

Please sign in to comment.