active device detection

This commit is contained in:
Andrew Minnich
2018-03-08 23:01:45 -05:00
parent 0cb0175add
commit 375a4e1441
2 changed files with 43 additions and 1 deletions

View File

@@ -15,4 +15,10 @@ local input = baton.new {
joystick = love.joystick.getJoysticks()[1],
}
print(inspect(input))
function love.update(dt)
input:update()
end
function love.draw()
love.graphics.print(tostring(input._activeDevice))
end