Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

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

  • Loading branch information
icculus committed May 29, 2007
1 parent f586440 commit 396420a658e9184e7163ac366740b46c01e52ada
Showing with 2 additions and 3 deletions.
  1. +2 −3 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?

0 comments on commit 396420a

Please sign in to comment.