@@ -80,7 +80,8 @@ public class GameControllerKit: ObservableObject {
8080
8181 self . eventHandler = { [ weak self] button, pressed, controller in
8282 let message = " Controller # \( String ( describing: controller. playerIndex. rawValue) ) , " +
83- " Button \( String ( describing: button) ) is \( pressed ? " Pressed " : " Unpressed " ) "
83+ " Button \( String ( describing: button) ) \( button. position. arrowRepresentation) " +
84+ " is \( pressed ? " Pressed " : " Unpressed " ) "
8485
8586 self ? . logger. info ( " \( String ( describing: message) ) " )
8687 }
@@ -201,18 +202,18 @@ public class GameControllerKit: ObservableObject {
201202 }
202203
203204 let contr = String ( describing: currentControllerType)
204- logger. info ( " Did connect controller \( currentController. productCategory) recognized as \( contr) . " )
205+ logger. info (
206+ " Did connect controller \( currentController. productCategory) recognized as \( contr) . "
207+ )
205208
206- logger. info ( " CONNECTED: \( self . controllers. count) " )
207-
208- // Disfavor Siri Remote over a external controller.
209- if ( currentControllerType == . siriRemote && controllers. count == 1 ) ||
210- currentControllerType != . siriRemote {
209+ if !isConnected && currentControllerType != . siriRemote {
211210 isConnected = true
212211 controller = currentController
213212 controllerType = currentControllerType
214213
215- logger. info ( " Did set controller \( currentController. productCategory) as main (first) controller. " )
214+ logger. info (
215+ " Did set controller \( currentController. productCategory) as main (first) controller. "
216+ )
216217 }
217218
218219 setupController ( controller: currentController)
0 commit comments