return player pressing the button

This commit is contained in:
Buurazu authored and GitHub committed 2022-06-04 18:34:24 -04:00
1 parent f16ced3186
commit 0e00f5fa7f
1 file changed
+1 -1
+1 -1
View File
@@ -1520,7 +1520,7 @@ end
function EID:PlayersActionPressed(button, inputFunc)
inputFunc = inputFunc or Input.IsActionPressed
for k,_ in pairs(EID.controllerIndexes) do
if inputFunc(button, k) then return true end
if inputFunc(button, k) then return true, k end
end
return false
end