MagicMouse or trackpad wheel issue in 64bits

For Apple specific issues

MagicMouse or trackpad wheel issue in 64bits

Postby otristan » Thu Aug 16, 2012 12:54 pm

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,
otristan
JUCE UberWeenie
 
Posts: 648
Joined: Sat Mar 03, 2007 3:03 pm
Location: Paris

Re: MagicMouse or trackpad wheel issue in 64bits

Postby otristan » Thu Aug 16, 2012 1:05 pm

If you use the code equivalent to PPC, it works fine.
Related to deviceDeltaX and deviceDeltaY then
otristan
JUCE UberWeenie
 
Posts: 648
Joined: Sat Mar 03, 2007 3:03 pm
Location: Paris

Re: MagicMouse or trackpad wheel issue in 64bits

Postby jules » Thu Aug 16, 2012 1:28 pm

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?
User avatar
jules
Fearless Leader
 
Posts: 17193
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Re: MagicMouse or trackpad wheel issue in 64bits

Postby otristan » Thu Aug 16, 2012 1:33 pm

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
otristan
JUCE UberWeenie
 
Posts: 648
Joined: Sat Mar 03, 2007 3:03 pm
Location: Paris

Re: MagicMouse or trackpad wheel issue in 64bits

Postby jules » Thu Aug 16, 2012 1:44 pm

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.
User avatar
jules
Fearless Leader
 
Posts: 17193
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Re: MagicMouse or trackpad wheel issue in 64bits

Postby otristan » Thu Aug 16, 2012 1:46 pm

Thanks,
otristan
JUCE UberWeenie
 
Posts: 648
Joined: Sat Mar 03, 2007 3:03 pm
Location: Paris

Re: MagicMouse or trackpad wheel issue in 64bits

Postby otristan » Thu Aug 16, 2012 1:52 pm

By the way, it does works in 32bits and deviceDeltaX, deviceDeltaY returns correct values
otristan
JUCE UberWeenie
 
Posts: 648
Joined: Sat Mar 03, 2007 3:03 pm
Location: Paris

Re: MagicMouse or trackpad wheel issue in 64bits

Postby jules » Thu Aug 16, 2012 3:26 pm

Yeah, I know - I've checked something in already if you want to try.
User avatar
jules
Fearless Leader
 
Posts: 17193
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Re: MagicMouse or trackpad wheel issue in 64bits

Postby otristan » Thu Aug 16, 2012 4:49 pm

Works fine now.

Thanks !
otristan
JUCE UberWeenie
 
Posts: 648
Joined: Sat Mar 03, 2007 3:03 pm
Location: Paris


Return to MacOSX and iOS

Who is online

Users browsing this forum: Google [Bot] and 1 guest