mousemoved.lua 858 B

123456789101112131415161718192021222324252627282930313233343536
  1. return {
  2. tag = 'callbacks',
  3. summary = 'Called when the mouse is moved.',
  4. description = 'This callback is called when the mouse is moved.',
  5. arguments = {
  6. {
  7. name = 'x',
  8. type = 'number',
  9. description = 'The new x position of the mouse.'
  10. },
  11. {
  12. name = 'y',
  13. type = 'number',
  14. description = 'The new y position of the mouse.'
  15. },
  16. {
  17. name = 'dx',
  18. type = 'number',
  19. description = 'The movement on the x axis since the last mousemove event.'
  20. },
  21. {
  22. name = 'dy',
  23. type = 'number',
  24. description = 'The movement on the y axis since the last mousemove event.'
  25. }
  26. },
  27. returns = {},
  28. related = {
  29. 'lovr.mousepressed',
  30. 'lovr.mousereleased',
  31. 'lovr.wheelmoved',
  32. 'lovr.system.getMouseX',
  33. 'lovr.system.getMouseY',
  34. 'lovr.system.getMousePosition'
  35. }
  36. }