Skip to content

Commit

Permalink
Fix input events calling multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
Sudospective committed Nov 15, 2021
1 parent 7a1282f commit 547386f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/stdlib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,11 @@ if not Tweens.instant then
Tweens.instant = function(x) return 1 end
end


local InputHandler = function(event)
if env.input then
env.input(event)
if input then
input(event)
end
MESSAGEMAN:Broadcast('Input', {event})
MESSAGEMAN:Broadcast(env._scope..'Input', {event})
end


Expand Down

0 comments on commit 547386f

Please sign in to comment.