ObjFW  Diff

Differences From Artifact [c99ef75558]:

  • File src/test/OTAppDelegate.m — part of check-in [7413a728a7] at 2024-04-03 02:16:03 on branch trunk — Change license to LGPLv3 only (user: js size: 16502) [more...]

To Artifact [da9bf57bcb]:

  • File src/test/OTAppDelegate.m — part of check-in [a0f4283e81] at 2024-05-05 18:59:50 on branch gamecontroller — Add OFGameController Only supports Nintendo 3DS so far. (user: js size: 16672)

335
336
337
338
339
340
341
342



343
344

345
346
347

348
349
350
351
352
353
354
335
336
337
338
339
340
341

342
343
344
345

346
347
348
349
350
351
352
353
354
355
356
357







-
+
+
+

-
+



+







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

		for (;;) {
			hidScanInput();
			void *pool = objc_autoreleasePoolPush();
			OFGameController *controller =
			    [OFGameController controllerWithIndex: 0];

			if (hidKeysDown() & KEY_A)
			if ([controller.pressedButtons containsObject: @"A"])
				break;

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

		while (appletMainLoop()) {
			PadState pad;