#5 Allow overriding the mouse position in mousewheel events

已合并
pgimeno 5 年之前 将 1 次代码提交从 pgimeno/allow-overriding-mouse合并至 pgimeno/master

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.
pgimeno5 年之前 关闭
该合并请求已经成功合并!
登录 并参与到对话中。
未选择里程碑
未指派成员
1 名参与者
正在加载...
取消
保存
这个人很懒,什么都没留下。