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];
|