Differences From Artifact [e739358c29]:
- File src/test/OTAppDelegate.m — part of check-in [16aab59c3c] at 2024-06-02 23:51:01 on branch trunk — Add HIDGameControllerMapping (user: js, size: 15364) [annotate] [blame] [check-ins using]
To Artifact [c2558fe049]:
- File
src/test/OTAppDelegate.m
— part of check-in
[afae3291bf]
at
2024-06-03 19:39:51
on branch trunk
— ObjFWHID: Change prefix to OH
Let's leave 3 letter prefixes to 3rd parties. (user: js, size: 15355) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
26 27 28 29 30 31 32 | #import "OFSet.h" #import "OFStdIOStream.h" #import "OFThread.h" #import "OFValue.h" #import "OTTestCase.h" | | | | | 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | #import "OFSet.h" #import "OFStdIOStream.h" #import "OFThread.h" #import "OFValue.h" #import "OTTestCase.h" #import "OHGameController.h" #import "OHGameControllerButton.h" #import "OHGameControllerMapping.h" #import "OTAssertionFailedException.h" #import "OTTestSkippedException.h" #ifdef OF_IOS # include <CoreFoundation/CoreFoundation.h> #endif |
︙ | ︙ | |||
281 282 283 284 285 286 287 | if (status == StatusFailed) { #if defined(OF_WII) || defined(OF_NINTENDO_DS) || defined(OF_NINTENDO_3DS) [OFStdOut setForegroundColor: [OFColor silver]]; [OFStdOut writeLine: @"Press A to continue"]; for (;;) { void *pool = objc_autoreleasePoolPush(); | | | | | 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 | if (status == StatusFailed) { #if defined(OF_WII) || defined(OF_NINTENDO_DS) || defined(OF_NINTENDO_3DS) [OFStdOut setForegroundColor: [OFColor silver]]; [OFStdOut writeLine: @"Press A to continue"]; for (;;) { void *pool = objc_autoreleasePoolPush(); OHGameController *controller = [[OHGameController controllers] objectAtIndex: 0]; OHGameControllerButton *button = [controller.unmappedMapping.buttons objectForKey: @"A"]; [controller retrieveState]; if (button.pressed) break; |
︙ | ︙ | |||
545 546 547 548 549 550 551 | [OFStdOut writeLine: @"Press Home button to exit"]; # else [OFStdOut writeLine: @"Press Start button to exit"]; # endif for (;;) { void *pool = objc_autoreleasePoolPush(); | | | | | 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 | [OFStdOut writeLine: @"Press Home button to exit"]; # else [OFStdOut writeLine: @"Press Start button to exit"]; # endif for (;;) { void *pool = objc_autoreleasePoolPush(); OHGameController *controller = [[OHGameController controllers] objectAtIndex: 0]; OHGameControllerButton *button = # ifdef OF_WII [controller.unmappedMapping.buttons objectForKey: @"Home"]; # else [controller.unmappedMapping.buttons objectForKey: @"Start"]; # endif [controller retrieveState]; |
︙ | ︙ |