woo more stuff

- custom button support WIP
- logging
This commit is contained in:
Paul Liverman
2015-02-10 16:52:25 -08:00
parent 46bad9539d
commit 1ef7eb8e57
6 changed files with 290 additions and 34 deletions

10
src/util/input.lua Normal file
View File

@@ -0,0 +1,10 @@
return function(inValue, acceptableValues)
local isValid = false
for i=1,#acceptableValues.clicks do
if inValue == acceptableValues.clicks[i] then isValid = true end
end
for i=1,#acceptableValues.buttons do
if inValue == acceptableValues.buttons[i] then isValid = true end
end
return isValid
end