Use the same Controller object for player 0 and the on-screen controls so tapping on-screen buttons doesn't reset all physical controller input to 0. Fixes pressing L3 to run in some games.

This commit is contained in:
Cameron Gutman
2016-05-22 17:11:30 -05:00
parent b17c45e9ca
commit 7b3d099449
3 changed files with 22 additions and 4 deletions

View File

@@ -119,8 +119,7 @@ static float L3_Y;
self = [self init];
_view = view;
_controllerSupport = controllerSupport;
_controller = [[Controller alloc] init];
_controller.playerIndex = 0;
_controller = [controllerSupport getOscController];
_edgeDelegate = swipeDelegate;
_deadTouches = [[NSMutableArray alloc] init];