Page 1 of 1

How does scrolling work on an Apple Magic Mouse

Posted: Wed Apr 20, 2016 9:33 pm
by ThePC007
Hey there,
I'm aware that moving the wheel on a regular mouse triggers the love.wheelmoved(x, y) function, however, I am wondering how Löve would deal with Apple's Magic Mouse running on OS X. Since I do not own a Mac (that isn't a mid-2007 MacBook) and also don't own a Magic Mouse, I obviously cannot test it, which is why I am posting this, in hopes that somebody with a Mac could answer my question. Does love.wheelmoved(x, y) get triggered when the user is sliding his finger across his Magic Mouse? And if yes, do the x and y values actually correspond to the distance/speed of the slide?

ThePC007

Re: How does scrolling work on an Apple Magic Mouse

Posted: Thu Apr 21, 2016 5:34 pm
by JaredSartin
Post a Love file or code to run and the instructions for what you want in return, I have access to the hardware.

Re: How does scrolling work on an Apple Magic Mouse

Posted: Thu Apr 21, 2016 5:52 pm
by ThePC007
Here you go. It's quite simple: You move your mouse wheel and it draws a text showing you the x and y values that the love.wheelmoved(x, y) callback has generated.