From 396420a658e9184e7163ac366740b46c01e52ada Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 29 May 2007 12:14:16 +0000 Subject: [PATCH] Merged r3029:3030 from branches/SDL-1.2: Mac OS X joystick axis fix. --- src/joystick/darwin/SDL_sysjoystick.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/joystick/darwin/SDL_sysjoystick.c b/src/joystick/darwin/SDL_sysjoystick.c index 9ff49842e..8025df48a 100644 --- a/src/joystick/darwin/SDL_sysjoystick.c +++ b/src/joystick/darwin/SDL_sysjoystick.c @@ -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?