It might sound weird for a 2D project, but my game is a top-down shooter and you may sometimes need to move your cursor faster. It might be an enemy coming up from the top left, or just the fact that you have a big monitor.
Here is the current code I have for it. Very laggy, and doesn't even work when VSync is off.
Code: Select all
--(Settings.sensivity varies between 1-x)
local mx, my = love.mouse.getPosition()
mx = mx + (mx-self.oldX)*Settings.sensivity
my = my + (my-self.oldY)*Settings.sensivity
love.mouse.setPosition(mx, my)
self.oldX, self.oldY = love.mouse.getPosition()