Commit 68348a9f authored by Ryan C. Gordon's avatar Ryan C. Gordon

Merged r3029:3030 from branches/SDL-1.2: Mac OS X joystick axis fix.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402321
parent b9b86fb0
......@@ -258,12 +258,11 @@ HIDGetElementInfo(CFTypeRef refElement, recElement * pElement)
pElement->cookie = (IOHIDElementCookie) number;
refType = CFDictionaryGetValue(refElement, CFSTR(kIOHIDElementMinKey));
if (refType && CFNumberGetValue(refType, kCFNumberLongType, &number))
pElement->min = number;
pElement->minReport = pElement->min = number;
pElement->maxReport = pElement->min;
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?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment