Skip to content
Permalink
Browse files

Mac OS X joystick calibration code should start with device-specified…

… bounds.

  Fixes Bugzilla #344.
  • Loading branch information
icculus committed May 29, 2007
1 parent a0054e1 commit 9eb40229f58f4db769470dae2bff9eb90178d4f2
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/joystick/darwin/SDL_sysjoystick.c
@@ -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?

0 comments on commit 9eb4022

Please sign in to comment.