1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-12-23 13:48:23 +00:00

preventDefaultKeys for PreciseInputManager, and just use the FlxG.keys version

This commit is contained in:
Cameron Taylor 2024-05-01 17:23:22 -04:00
parent aa7934fd32
commit aaeb77a1f5
2 changed files with 1 additions and 2 deletions

View file

@ -163,7 +163,7 @@ class PreciseInputManager extends FlxKeyManager<FlxKey, PreciseInputList>
static function getPreventDefaultKeys():Array<FlxKey>
{
return [];
return FlxG.keys.preventDefaultKeys;
}
/**

View file

@ -1773,7 +1773,6 @@ class PlayState extends MusicBeatSubState
function initPreciseInputs():Void
{
FlxG.keys.preventDefaultKeys = [];
PreciseInputManager.instance.onInputPressed.add(onKeyPress);
PreciseInputManager.instance.onInputReleased.add(onKeyRelease);
}