1. Anders Ruud
  2. love
  3. Issues


Issue #43 invalid

love.mouse.setPosition acts strangely

Anonymous created an issue


mousem = 400 - love.mouse.getX(); love.mouse.setPosition(400, 300); love.graphics.print("Movement: ".. mousem .. " - getX: ".. love.mouse.getX(), 10, 590);


This will result in some pretty bizarre effects (at least under Windows) -- the cursor will move, but it acts as if the mouse isn't moving at all 80% of the time, leading to very sporadic and prone-to-failure movement tests.

As there's no way to lock the mouse somewhere and get the delta, this kind of makes keeping it positioned in a way that movement in any direction is possible somewhat difficult.

Comments (1)

  1. Log in to comment