main.lua 363 B

12345678910111213141516
  1. function love.load()
  2. love.filesystem.setIdentity(love.filesystem.getIdentity(),true)
  3. File=require("file")
  4. a=require("input")
  5. d=a.new({keyboard=true})
  6. e=a.new({keyboard=true})
  7. d.mapping("keyboard","import","test.toml")
  8. e.mapping("keyboard","import","test.toml")
  9. end
  10. function love.update(dt)
  11. e.update(dt)
  12. d.update(dt)
  13. e.detect("right")
  14. d.detect("left")
  15. end