revert to default input on a non cpp target
This commit is contained in:
parent
0024798715
commit
10d601ddc9
@ -1441,7 +1441,9 @@ class PlayState extends MusicBeatState
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (keys[data])
|
if (keys[data])
|
||||||
|
{
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
keys[data] = true;
|
keys[data] = true;
|
||||||
|
|
||||||
@ -3200,6 +3202,8 @@ class PlayState extends MusicBeatState
|
|||||||
};
|
};
|
||||||
#end
|
#end
|
||||||
|
|
||||||
|
var nonCpp = false;
|
||||||
|
|
||||||
|
|
||||||
// Prevent player input if botplay is on
|
// Prevent player input if botplay is on
|
||||||
if(PlayStateChangeables.botPlay)
|
if(PlayStateChangeables.botPlay)
|
||||||
@ -3209,6 +3213,10 @@ class PlayState extends MusicBeatState
|
|||||||
releaseArray = [false, false, false, false];
|
releaseArray = [false, false, false, false];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !cpp
|
||||||
|
nonCpp = true;
|
||||||
|
#end
|
||||||
|
|
||||||
var anas:Array<Ana> = [null,null,null,null];
|
var anas:Array<Ana> = [null,null,null,null];
|
||||||
|
|
||||||
for (i in 0...pressArray.length)
|
for (i in 0...pressArray.length)
|
||||||
@ -3225,7 +3233,7 @@ class PlayState extends MusicBeatState
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (KeyBinds.gamepad && !FlxG.keys.justPressed.ANY)
|
if ((KeyBinds.gamepad && !FlxG.keys.justPressed.ANY) || nonCpp)
|
||||||
{
|
{
|
||||||
// PRESSES, check for note hits
|
// PRESSES, check for note hits
|
||||||
if (pressArray.contains(true) && generatedMusic)
|
if (pressArray.contains(true) && generatedMusic)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user