X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=Joystick.m;fp=Joystick.m;h=fd08ee6748ddcdbfb9266da3711613bd786a8130;hp=8fa67919789fde788b7c9bd807e787d63f21146a;hb=51ca12b552a9c17c4d4029b0340e193b273044a8;hpb=5704217edc0a67f3720053248d5c9ba10131b776 diff --git a/Joystick.m b/Joystick.m index 8fa6791..fd08ee6 100644 --- a/Joystick.m +++ b/Joystick.m @@ -48,7 +48,7 @@ int axes = 0; for(int i=0; i<[elements count]; i++) { - IOHIDElementRef element = (IOHIDElementRef)[elements objectAtIndex: i]; + IOHIDElementRef element = (IOHIDElementRef)elements[i]; int type = IOHIDElementGetType(element); int usage = IOHIDElementGetUsage(element); int usagePage = IOHIDElementGetUsagePage(element); @@ -96,8 +96,8 @@ - (JSAction*) findActionByCookie: (void*) cookie { for(int i=0; i<[children count]; i++) - if([[children objectAtIndex:i]cookie] == cookie) - return (JSAction*)[children objectAtIndex:i]; + if([children[i]cookie] == cookie) + return (JSAction*)children[i]; return NULL; }