ObjFW  Diff

Differences From Artifact [428268d86d]:

  • File src/hid/OHWiimote.m — part of check-in [bc3a7747d9] at 2024-11-03 15:46:25 on branch trunk — ObjFWHID: Properly hide private methods Also fixes compiling XInput with GCC. (user: js size: 2919) [more...]

To Artifact [0ed1283b59]:

  • File src/hid/OHWiimote.m — part of check-in [6987b91bcf] at 2024-12-28 03:19:57 on branch trunk — ObjFWHID: Clean up retain vs copy (user: js size: 2917)

57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
		for (size_t i = 0; i < numButtons; i++) {
			OHGameControllerButton *button = [OHGameControllerButton
			    oh_elementWithName: buttonNames[i]
					analog: false];
			[buttons setObject: button forKey: buttonNames[i]];
		}
		[buttons makeImmutable];
		_buttons = [buttons retain];

		up = [OHGameControllerButton oh_elementWithName: @"D-Pad Up"
							 analog: false];
		down = [OHGameControllerButton oh_elementWithName: @"D-Pad Down"
							   analog: false];
		left = [OHGameControllerButton oh_elementWithName: @"D-Pad Left"
							   analog: false];







|







57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
		for (size_t i = 0; i < numButtons; i++) {
			OHGameControllerButton *button = [OHGameControllerButton
			    oh_elementWithName: buttonNames[i]
					analog: false];
			[buttons setObject: button forKey: buttonNames[i]];
		}
		[buttons makeImmutable];
		_buttons = [buttons copy];

		up = [OHGameControllerButton oh_elementWithName: @"D-Pad Up"
							 analog: false];
		down = [OHGameControllerButton oh_elementWithName: @"D-Pad Down"
							   analog: false];
		left = [OHGameControllerButton oh_elementWithName: @"D-Pad Left"
							   analog: false];