From 38eb53f1db22bfaa589ec24e1d2dd14dc9e30583 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Sundstr=C3=B6m?= Date: Wed, 19 Jul 2023 17:14:34 +0200 Subject: [PATCH] IOS7: Add X and Y buttons to virtual controller --- backends/platform/ios7/ios7_gamepad_controller.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/platform/ios7/ios7_gamepad_controller.mm b/backends/platform/ios7/ios7_gamepad_controller.mm index 20c1776bce1..157693093c3 100644 --- a/backends/platform/ios7/ios7_gamepad_controller.mm +++ b/backends/platform/ios7/ios7_gamepad_controller.mm @@ -56,7 +56,7 @@ if (@available(iOS 15.0, *)) { // Configure a simple game controller with dPad and A and B buttons _config = [[GCVirtualControllerConfiguration alloc] init]; - _config.elements = [[NSSet alloc] initWithObjects:GCInputDirectionPad, GCInputButtonA, GCInputButtonB, nil]; + _config.elements = [[NSSet alloc] initWithObjects:GCInputDirectionPad, GCInputButtonA, GCInputButtonB, GCInputButtonX, GCInputButtonY, nil]; _virtualController = [[GCVirtualController alloc] initWithConfiguration:_config]; } #endif