#5 Allow overriding the mouse position in mousewheel events

Fusionado
pgimeno fusionados 1 commits de pgimeno/allow-overriding-mouse en pgimeno/master hace 6 años

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.
¡Este Pull Request se ha completado con éxito!
Inicie sesión para unirse a esta conversación.
Sin Milestone
Sin asignado
1 participantes
Cargando...
Cancelar
Guardar
Aún no existe contenido.