1. Anders Ruud
  2. love

Issues

Issue #49 wontfix

love.mousemove (x, y)

Luiji Maryo
created an issue

We should be able to detect when the mouse moves so that we can implement hover-over items.

{{{ function love.mousemove (x, y) if 50 < x < 100 and 50 < y < 20 then MyMenuItem::hoverover () end end }}}

Comments (5)

  1. FelipeBudinich

    I'm not sure if i understand you, but can't we already do that with love.mouse.getPosition( ) ? (in fact that's how i'm making all the buttons on my game, and they change colour and all the fancy "hovering over me" stuff)

  2. Anonymous

    I think the idea was to have a specific thing like love.keypressed, except for mouse movement.

    Though it seems like a better idea to just use love.mouse.getPosition()...

  3. Log in to comment