return player pressing the button
This commit is contained in:
1 parent
f16ced3186
commit
0e00f5fa7f
1 file changed
+1
-1
+1
-1
@@ -1520,7 +1520,7 @@ end
|
|||||||
function EID:PlayersActionPressed(button, inputFunc)
|
function EID:PlayersActionPressed(button, inputFunc)
|
||||||
inputFunc = inputFunc or Input.IsActionPressed
|
inputFunc = inputFunc or Input.IsActionPressed
|
||||||
for k,_ in pairs(EID.controllerIndexes) do
|
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
|
end
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user