ObjFW  Diff

Differences From Artifact [f89e0b995b]:

To Artifact [1b3ca013dd]:


41
42
43
44
45
46
47
48

49
50
51


52
53

54
55
56
57
58
59
60
61
62
63
64
41
42
43
44
45
46
47

48



49
50


51




52
53
54
55
56
57
58







-
+
-
-
-
+
+
-
-
+
-
-
-
-







		    [OFMutableDictionary dictionaryWithCapacity: numButtons];
		OFMutableDictionary *directionalPads;
		OHGameControllerAxis *xAxis, *yAxis;
		OHGameControllerDirectionalPad *directionalPad;
		OHGameControllerButton *up, *down, *left, *right;

		for (size_t i = 0; i < numButtons; i++) {
			OHGameControllerButton *button;
			OHGameControllerButton *button =

			button = [[OHGameControllerButton alloc]
			    initWithName: buttonNames[i]];
			    [[[OHGameControllerButton alloc]
			    initWithName: buttonNames[i]] autorelease];
			@try {
				[buttons setObject: button
			[buttons setObject: button forKey: buttonNames[i]];
					    forKey: buttonNames[i]];
			} @finally {
				[button release];
			}
		}
		[buttons makeImmutable];
		_buttons = [buttons retain];

		_axes = [[OFDictionary alloc] init];

		directionalPads =