rx-love.lua 503 B

1234567891011121314151617181920212223242526272829303132
  1. -- RxLove
  2. -- https://github.com/bjornbytes/RxLove
  3. -- MIT License
  4. local events = {
  5. 'directorydropped',
  6. 'draw',
  7. 'filedropped',
  8. 'focus',
  9. 'keypressed',
  10. 'keyreleased',
  11. 'lowmemory',
  12. 'mousefocus',
  13. 'mousemoved',
  14. 'mousepressed',
  15. 'mousereleased',
  16. 'quit',
  17. 'resize',
  18. 'textedited',
  19. 'textinput',
  20. 'touchmoved',
  21. 'touchpressed',
  22. 'touchreleased',
  23. 'threaderror',
  24. 'update',
  25. 'visible',
  26. 'wheelmoved'
  27. }
  28. for _, event in pairs(events) do
  29. love[event] = lib.rx.Subject.create()
  30. end