Mac OS X joystick calibration code should start with device-specified bounds.
Fixes Bugzilla #344. --HG-- branch : SDL-1.2 extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402320
This commit is contained in:
parent
576d64cb8d
commit
27d3e5f271
1 changed files with 2 additions and 4 deletions
|
@ -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?
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue