ObjFW  Diff

Differences From Artifact [c99ef75558]:

To Artifact [3474e8e70a]:


24
25
26
27
28
29
30


31
32
33
34
35
36
37
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39







+
+







#import "OFDictionary.h"
#import "OFMethodSignature.h"
#import "OFSet.h"
#import "OFStdIOStream.h"
#import "OFValue.h"

#import "OTTestCase.h"

#import "OFGameController.h"

#import "OTAssertionFailedException.h"
#import "OTTestSkippedException.h"

#ifdef OF_IOS
# include <CoreFoundation/CoreFoundation.h>
#endif
319
320
321
322
323
324
325
326

327
328
329
330
331
332



333
334


335
336
337


338
339
340

341
342
343

344
345
346
347


348
349
350
351
352
353
354
321
322
323
324
325
326
327

328
329
330
331
332


333
334
335
336

337
338
339


340
341



342



343



344
345
346
347
348
349
350
351
352
353







-
+




-
-
+
+
+

-
+
+

-
-
+
+
-
-
-
+
-
-
-
+
-
-
-

+
+







			WPAD_ScanPads();

			if (WPAD_ButtonsDown(0) & WPAD_BUTTON_A)
				break;

			VIDEO_WaitVSync();
		}
#elif defined(OF_NINTENDO_DS)
#elif defined(OF_NINTENDO_DS) || defined(OF_NINTENDO_3DS)
		[OFStdOut setForegroundColor: [OFColor silver]];
		[OFStdOut writeLine: @"Press A to continue"];

		for (;;) {
			swiWaitForVBlank();
			scanKeys();
			void *pool = objc_autoreleasePoolPush();
			OFGameController *controller =
			    [[OFGameController controllers] objectAtIndex: 0];

			if (keysDown() & KEY_A)
			if ([controller.pressedButtons containsObject:
			    OFGameControllerEastButton])
				break;
		}
#elif defined(OF_NINTENDO_3DS)

# if defined(OF_NINTENDO_DS)
		[OFStdOut setForegroundColor: [OFColor silver]];
		[OFStdOut writeLine: @"Press A to continue"];

			swiWaitForVBlank();
		for (;;) {
			hidScanInput();

# elif defined(OF_NINTENDO_3DS)
			if (hidKeysDown() & KEY_A)
				break;

			gspWaitForVBlank();
# endif
			objc_autoreleasePoolPop(pool);
		}
#elif defined(OF_NINTENDO_SWITCH)
		[OFStdOut setForegroundColor: [OFColor silver]];
		[OFStdOut writeLine: @"Press A to continue"];

		while (appletMainLoop()) {
			PadState pad;