#5 Allow overriding the mouse position in mousewheel events

Fusionné
pgimeno à fusionné 1 commits à partir de pgimeno/allow-overriding-mouse vers pgimeno/master il y a 5 ans

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.
Cette Pull Request a été fusionnée avec succès !
Connectez-vous pour rejoindre cette conversation.
Aucun jalon
Pas d'assignataire
1 Participants
Chargement…
Annuler
Enregistrer
Il n'existe pas encore de contenu.