Merged r3029:3030 from branches/SDL-1.2: Mac OS X joystick axis fix.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 29 May 2007 12:14:16 +0000
changeset 210951cbe188a49e
parent 2108 a930c8e4d8b0
child 2110 21942f552734
Merged r3029:3030 from branches/SDL-1.2: Mac OS X joystick axis fix.
src/joystick/darwin/SDL_sysjoystick.c
     1.1 --- a/src/joystick/darwin/SDL_sysjoystick.c	Sun May 27 08:54:38 2007 +0000
     1.2 +++ b/src/joystick/darwin/SDL_sysjoystick.c	Tue May 29 12:14:16 2007 +0000
     1.3 @@ -258,12 +258,11 @@
     1.4          pElement->cookie = (IOHIDElementCookie) number;
     1.5      refType = CFDictionaryGetValue(refElement, CFSTR(kIOHIDElementMinKey));
     1.6      if (refType && CFNumberGetValue(refType, kCFNumberLongType, &number))
     1.7 -        pElement->min = number;
     1.8 +        pElement->minReport = pElement->min = number;
     1.9      pElement->maxReport = pElement->min;
    1.10      refType = CFDictionaryGetValue(refElement, CFSTR(kIOHIDElementMaxKey));
    1.11      if (refType && CFNumberGetValue(refType, kCFNumberLongType, &number))
    1.12 -        pElement->max = number;
    1.13 -    pElement->minReport = pElement->max;
    1.14 +        pElement->maxReport = pElement->max = number;
    1.15  /*
    1.16  	TODO: maybe should handle the following stuff somehow?
    1.17