290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
|
# endif
void *pool = objc_autoreleasePoolPush();
OHGameController *controller =
[[OHGameController controllers] objectAtIndex: 0];
OHGameControllerButton *button =
[controller.profile.buttons objectForKey: @"A"];
[controller retrieveState];
if (button.pressed)
break;
# ifdef OF_NINTENDO_SWITCH
updateConsole(true);
# else
|
|
|
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
|
# endif
void *pool = objc_autoreleasePoolPush();
OHGameController *controller =
[[OHGameController controllers] objectAtIndex: 0];
OHGameControllerButton *button =
[controller.profile.buttons objectForKey: @"A"];
[controller updateState];
if (button.pressed)
break;
# ifdef OF_NINTENDO_SWITCH
updateConsole(true);
# else
|
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
|
OHGameControllerButton *button =
# ifdef OF_WII
[controller.profile.buttons objectForKey: @"Home"];
# else
[controller.profile.buttons objectForKey: @"Start"];
# endif
[controller retrieveState];
if (button.pressed)
break;
[OFThread waitForVerticalBlank];
objc_autoreleasePoolPop(pool);
|
|
|
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
|
OHGameControllerButton *button =
# ifdef OF_WII
[controller.profile.buttons objectForKey: @"Home"];
# else
[controller.profile.buttons objectForKey: @"Start"];
# endif
[controller updateState];
if (button.pressed)
break;
[OFThread waitForVerticalBlank];
objc_autoreleasePoolPop(pool);
|