Commits

Anonymous committed 9ef9783

Upgrade to DDHidLib v1.0.1

Comments (0)

Files changed (3)

osx/MameInputController.m

 
 - (void) ddhidJoystick: (DDHidJoystick *) joystick
                  stick: (unsigned) stick
-            povElement: (unsigned) povElement
+             povNumber: (unsigned) povNumber
           valueChanged: (int) value;
 {
-    p->mJoystickStates[[joystick tag]].povs[povElement] = value;
+    p->mJoystickStates[[joystick tag]].povs[povNumber] = value;
 }
 
 - (void) ddhidJoystick: (DDHidJoystick *) joystick

vendor/DDHidLib/DDHidJoystick.h

 
 - (void) ddhidJoystick: (DDHidJoystick *) joystick
                  stick: (unsigned) stick
-            povElement: (unsigned) povElement
+             povNumber: (unsigned) povNumber
           valueChanged: (int) value;
 
 - (void) ddhidJoystick: (DDHidJoystick *) joystick

vendor/DDHidLib/DDHidJoystick.m

 
 - (void) ddhidJoystick: (DDHidJoystick *) joystick
                  stick: (unsigned) stick
-            povElement: (unsigned) povElement
+             povNumber: (unsigned) povNumber
           valueChanged: (int) value;
 
 - (void) ddhidJoystick: (DDHidJoystick *) joystick
         withCookie: (IOHIDElementCookie) cookie;
 
 - (BOOL) findStick: (unsigned *) stickOut
-        povElement: (unsigned *) povElement
+         povNumber: (unsigned *) povNumber
            element: (DDHidElement **) elementOut
         withCookie: (IOHIDElementCookie) cookie;
 
         DDHidElement * element;
         unsigned stick;
         unsigned otherAxis;
-        unsigned povElement;
+        unsigned povNumber;
         if ([self findStick: &stick element: &element withXAxisCookie: cookie])
         {
             int normalizedValue = [self normalizeValue: value forElement: element];
             [self ddhidJoystick: self stick: stick
                       otherAxis: otherAxis valueChanged: normalizedValue];
         }
-        else if ([self findStick: &stick povElement: &povElement element: &element
+        else if ([self findStick: &stick povNumber: &povNumber element: &element
                       withCookie: cookie])
         {
             int povValue = [self povValue: value forElement: element];
             [self ddhidJoystick: self stick: stick
-                     povElement: povElement valueChanged: povValue];
+                      povNumber: povNumber valueChanged: povValue];
         }
         else
         {
 }
 
 - (BOOL) findStick: (unsigned *) stickOut
-        povElement: (unsigned *) povElement
+         povNumber: (unsigned *) povNumber
            element: (DDHidElement **) elementOut
         withCookie: (IOHIDElementCookie) cookie;
 {
             if ((element != nil) && ([element cookie] == cookie))
             {
                 *stickOut = i;
-                *povElement = j;
+                *povNumber = j;
                 *elementOut = element;
                 return YES;
             }
 
 - (void) ddhidJoystick: (DDHidJoystick *) joystick
                  stick: (unsigned) stick
-            povElement: (unsigned) povElement
+             povNumber: (unsigned) povNumber
           valueChanged: (int) value;
 {
     if ([mDelegate respondsToSelector: _cmd])
-        [mDelegate ddhidJoystick: joystick stick: stick povElement: povElement
+        [mDelegate ddhidJoystick: joystick stick: stick povNumber: povNumber
                     valueChanged: value];
 }