From 1f685917357aaa4a290724cbe39513e6186f5583 Mon Sep 17 00:00:00 2001 From: brand175 <20964160+brand175@users.noreply.github.com> Date: Mon, 26 Feb 2018 15:06:00 -0800 Subject: [PATCH] Fixed incorrect joyPosition values The joyposition is actually 127 + 128 not 126 + 127. --- GC4iOS/UI/EmulatorViewController.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GC4iOS/UI/EmulatorViewController.mm b/GC4iOS/UI/EmulatorViewController.mm index 5be7769..6664b13 100644 --- a/GC4iOS/UI/EmulatorViewController.mm +++ b/GC4iOS/UI/EmulatorViewController.mm @@ -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