195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
|
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
|
-
-
-
+
+
+
+
+
+
+
|
[OFStdOut clear];
}
[OFStdOut setCursorPosition: OFMakePoint(0, 0)];
for (OHGameController *controller in _controllers) {
OHGameControllerProfile *profile =
(controller.gamepad != nil
? controller.gamepad : controller.rawProfile);
OHGameControllerProfile *profile;
profile = controller.extendedGamepad;
if (profile == nil)
profile = controller.gamepad;
if (profile == nil)
profile = controller.rawProfile;
[OFStdOut setForegroundColor: [OFColor green]];
[OFStdOut writeLine: controller.description];
@try {
[controller retrieveState];
} @catch (OFReadFailedException *e) {
|