217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
|
id <OHGameControllerProfile> profile =
controller.profile;
[OFStdOut setForegroundColor: [OFColor green]];
[OFStdOut writeLine: controller.description];
@try {
[controller retrieveState];
} @catch (OFReadFailedException *e) {
[OFStdOut setForegroundColor: [OFColor red]];
[OFStdOut writeString: e.description];
continue;
}
printProfile(profile);
|
|
|
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
|
id <OHGameControllerProfile> profile =
controller.profile;
[OFStdOut setForegroundColor: [OFColor green]];
[OFStdOut writeLine: controller.description];
@try {
[controller updateState];
} @catch (OFReadFailedException *e) {
[OFStdOut setForegroundColor: [OFColor red]];
[OFStdOut writeString: e.description];
continue;
}
printProfile(profile);
|