MagicMouse or trackpad wheel issue in 64bits


#1

Hi Jules,

deltaX and deltaY returns NaN when using a magicMouse or a trackpad in 64bits (happen 10.7 or 10.8 )

You can easily reproduce this using the Juce Demo and change the debug version to compile in 64bits (using 10.6 SDK)

It didn’t happen in older version of Juce FWIW

Thanks,


#2

If you use the code equivalent to PPC, it works fine.
Related to deviceDeltaX and deviceDeltaY then


#3

I use a trackpad myself, and 64-bit builds, in 10.7. Maybe the difference is that you’re using the 10.6 SDK - try 10.7 instead?


#4

Still using xCode 3.2.5 so I don’t have access to 10.7 SDK (because of PACE protection)

Would be great if it worked using 10.6 SDK as well ? :smiley:


#5

Ok, fair point. I guess it needs to check whether the result is a NaN, because it does seem to be the case that some devices implement that method, but it doesn’t work.


#6

Thanks,


#7

By the way, it does works in 32bits and deviceDeltaX, deviceDeltaY returns correct values


#8

Yeah, I know - I’ve checked something in already if you want to try.


#9

Works fine now.

Thanks !