Skip to content

Commit

Permalink
fix docs (HaxeFlixel#3139)
Browse files Browse the repository at this point in the history
* fix docs

* fix typo
  • Loading branch information
Geokureli authored May 15, 2024
1 parent fd3eff9 commit d2f3ae2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions flixel/system/frontEnds/InputFrontEnd.hx
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,15 @@ class InputFrontEnd
public function addUniqueType<T:IFlxInputManager>(input:T):T
{
// Don't add repeat types
if (!Lambda.exists(list, FlxStringUtil.sameClassName.bind(_, input)))
list.push(input);
for (i in list)
{
if (FlxStringUtil.sameClassName(input, i, false))
{
return input;
}
}

list.push(input);
return input;
}

Expand Down

0 comments on commit d2f3ae2

Please sign in to comment.