mirror of
https://github.com/yawut/SDL.git
synced 2026-10-02 05:06:46 -05:00
Mac OS X joystick calibration code should start with device-specified bounds.
Fixes Bugzilla #344. --HG-- branch : SDL-1.2
This commit is contained in:
@@ -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?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user