Page 2 of 2

Re: Mouse scrolling

Posted: Sat Jul 09, 2016 2:14 pm
by sanjiv
Many laptops allow users to scroll using two fingers on the touch pad. Does Love2d v 10 have a way to recognize this action? I'm looking at the wiki entries for the touch-related callback entries, and it doesn't seem to.

Re: Mouse scrolling

Posted: Sat Jul 09, 2016 4:49 pm
by davisdude
(On Windows 10) I've set mine to recognize scrolling by starting in the top-right corner and moving in clockwise circles around the pad. When tested with the love.wheelmoved callback it is very inconsistent in recognizing that as a wheelmove. If it does recognize it, however, it only gets the start of it.

Re: Mouse scrolling

Posted: Sat Jul 09, 2016 6:10 pm
by slime
sanjiv wrote:Many laptops allow users to scroll using two fingers on the touch pad. Does Love2d v 10 have a way to recognize this action? I'm looking at the wiki entries for the touch-related callback entries, and it doesn't seem to.
[wiki]love.wheelmoved[/wiki]. The operating system will interpret your two-finger movement as a scroll action and send a mouse wheel motion event to LÖVE.