main.lua 308 B

123456789101112131415
  1. lovr.keyboard = require 'lovr-keyboard'
  2. function lovr.keypressed(key)
  3. print('keypressed', key)
  4. end
  5. function lovr.keyreleased(key)
  6. print('keyreleased', key)
  7. end
  8. function lovr.update(dt)
  9. if lovr.keyboard.isDown('a', 'e', 'i', 'o', 'u') then
  10. print('haha stop pressing vowels it tickles')
  11. end
  12. end