From 5579d92f21c712207f2c253a77ac4d93e25e65d6 Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Wed, 25 Aug 2021 13:21:55 -0400 Subject: [PATCH] fix swipe on left side of screen thingie --- source/Controls.hx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/source/Controls.hx b/source/Controls.hx index 2e6ff9d99..a45f4cc25 100644 --- a/source/Controls.hx +++ b/source/Controls.hx @@ -868,15 +868,8 @@ class FlxActionInputDigitalMobileSwipeGameplay extends FlxActionInputDigital } // fix right swipe - // fix down swipe on left side of screen? var touchMap:Map = new Map(); - var initTouchPos:FlxPoint = new FlxPoint(); - - var touchAngle:Float = 0; - var touchLength:Float = 0; - var curTouchPos:FlxPoint = new FlxPoint(); - var vibrationSteps:Int = 5; var curStep:Int = 5; var activateLength:Float = 90; @@ -977,7 +970,7 @@ class FlxActionInputDigitalMobileSwipeGameplay extends FlxActionInputDigital { curStep = 1; Haptic.vibrate(100, 30); - swipe.initTouchPos.set(curTouchPos.x, curTouchPos.y); + swipe.initTouchPos.set(swipe.curTouchPos.x, swipe.curTouchPos.y); return true; } }