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:
parent
aa7934fd32
commit
aaeb77a1f5
|
@ -163,7 +163,7 @@ class PreciseInputManager extends FlxKeyManager<FlxKey, PreciseInputList>
|
|||
|
||||
static function getPreventDefaultKeys():Array<FlxKey>
|
||||
{
|
||||
return [];
|
||||
return FlxG.keys.preventDefaultKeys;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -1773,7 +1773,6 @@ class PlayState extends MusicBeatSubState
|
|||
|
||||
function initPreciseInputs():Void
|
||||
{
|
||||
FlxG.keys.preventDefaultKeys = [];
|
||||
PreciseInputManager.instance.onInputPressed.add(onKeyPress);
|
||||
PreciseInputManager.instance.onInputReleased.add(onKeyRelease);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue