MagicMouse or trackpad wheel issue in 64bits

9 posts / 0 new
Last post
otristan
Offline
Last seen: 2 hours 30 min ago
Joined: 3 Mar 2007 - 14:03
MagicMouse or trackpad wheel issue in 64bits

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,

Olivier

otristan
Offline
Last seen: 2 hours 30 min ago
Joined: 3 Mar 2007 - 14:03
Re: MagicMouse or trackpad wheel issue in 64bits

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

Olivier

jules
Online
Last seen: 4 min 28 sec ago
Joined: 29 Apr 2013 - 18:37
Re: MagicMouse or trackpad wheel issue in 64bits

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?

otristan
Offline
Last seen: 2 hours 30 min ago
Joined: 3 Mar 2007 - 14:03
Re: MagicMouse or trackpad wheel issue in 64bits

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 ? :D

Olivier

jules
Online
Last seen: 4 min 28 sec ago
Joined: 29 Apr 2013 - 18:37
Re: MagicMouse or trackpad wheel issue in 64bits

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.

otristan
Offline
Last seen: 2 hours 30 min ago
Joined: 3 Mar 2007 - 14:03
Re: MagicMouse or trackpad wheel issue in 64bits

Thanks,

Olivier

otristan
Offline
Last seen: 2 hours 30 min ago
Joined: 3 Mar 2007 - 14:03
Re: MagicMouse or trackpad wheel issue in 64bits

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

Olivier

jules
Online
Last seen: 4 min 28 sec ago
Joined: 29 Apr 2013 - 18:37
Re: MagicMouse or trackpad wheel issue in 64bits

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

otristan
Offline
Last seen: 2 hours 30 min ago
Joined: 3 Mar 2007 - 14:03
Re: MagicMouse or trackpad wheel issue in 64bits

Works fine now.

Thanks !

Olivier