Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions GC4iOS/UI/EmulatorViewController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ - (void)viewWillLayoutSubviews
#pragma mark - Controller Delegate

u16 buttonState;
CGPoint joyData[2];
CGPoint joyData[2] = {127.5,127.5,127.5,127.5};

////This is a terrible hack. We need to configure dolphin to use a custom controller not just override this function
void GCPad::GetInput(GCPadStatus* const pad)
Expand All @@ -85,8 +85,8 @@ - (void)viewWillLayoutSubviews
// Create a new class to handle the controller later
- (void)joystick:(NSInteger)joyid movedToPosition:(CGPoint)joyPosition
{
joyData[joyid].x = joyPosition.x * 126 + 127;
joyData[joyid].y = joyPosition.y * 126 + 127;
joyData[joyid].x = joyPosition.x * 127 + 128;
joyData[joyid].y = joyPosition.y * 127 + 128;
}

- (void)buttonStateChanged:(u16)bState
Expand Down