mirror of
https://github.com/yawut/SDL.git
synced 2026-06-17 05:59:25 -05:00
Merged r3029:3030 from branches/SDL-1.2: Mac OS X joystick axis fix.
This commit is contained in:
parent
541e03310c
commit
5045fc5ea4
|
|
@ -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?
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user