1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-09-19 16:41:39 +00:00

fix swipe on left side of screen thingie

This commit is contained in:
Cameron Taylor 2021-08-25 13:21:55 -04:00
parent 84a2b980a5
commit 5579d92f21

View file

@ -868,15 +868,8 @@ class FlxActionInputDigitalMobileSwipeGameplay extends FlxActionInputDigital
} }
// fix right swipe // fix right swipe
// fix down swipe on left side of screen?
var touchMap:Map<Int, Swipes> = new Map(); var touchMap:Map<Int, Swipes> = 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 vibrationSteps:Int = 5;
var curStep:Int = 5; var curStep:Int = 5;
var activateLength:Float = 90; var activateLength:Float = 90;
@ -977,7 +970,7 @@ class FlxActionInputDigitalMobileSwipeGameplay extends FlxActionInputDigital
{ {
curStep = 1; curStep = 1;
Haptic.vibrate(100, 30); Haptic.vibrate(100, 30);
swipe.initTouchPos.set(curTouchPos.x, curTouchPos.y); swipe.initTouchPos.set(swipe.curTouchPos.x, swipe.curTouchPos.y);
return true; return true;
} }
} }