Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Geokureli committed May 15, 2024
1 parent fd3eff9 commit 8865711
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions flixel/system/frontEnds/InputFrontEnd.hx
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,13 @@ 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;
}
}

return input;
}
Expand Down

0 comments on commit 8865711

Please sign in to comment.