#5 Allow overriding the mouse position in mousewheel events

Merged
pgimeno merged 1 commits from pgimeno/allow-overriding-mouse into pgimeno/master 6 years ago

Rather than using love.mouse.getPosition() to get the mouse position in mousewheel events, use the getmouse() method which can be user-overriden

This allows using Gspot with transformed coordinate systems, by transforming the click position to world coordinates in love.mousepressed()/love.mousereleased() and overriding gui.getmouse() to return world coordinates as well.

Rather than using love.mouse.getPosition() to get the mouse position in mousewheel events, use the getmouse() method which can be user-overriden This allows using Gspot with transformed coordinate systems, by transforming the click position to world coordinates in love.mousepressed()/love.mousereleased() and overriding gui.getmouse() to return world coordinates as well.
This pull request has been merged successfully!
Sign in to join this conversation.
No Milestone
No assignee
1 Participants
Loading...
Cancel
Save
There is no content yet.