On Wed, Jan 12, 2005 at 08:16:47PM -0500, Richard Coutts wrote:
> Can some explain to me, using only small words, how to detect the 5-way
> navigator on the T5? I've read through the archives and even posted here a
> while back, but I'm having trouble following the explanations. The rocker
> defines are simple enough, but creating a 'fnav' resource makes my head
> spin. Ben posted a link a while back that summarizes things, but it's
> broken:
>
> http://palmone.participate.com/pe/forums/displaypost.jsp?postID=10100997
>
> All I'm looking for is a function that returns "true" if the T5 navigator
> is present. I think I can take it from there. If someone could point me to
> a step-by-step posting or spell thinks out, I will be indebted.
In simple pseudo-code:
if FtrGet(navFtrCreator, navFtrversion) succeeds
It has a T3-style navigator/API
else
if FtrGet(sysFileCSystem, sysFtrNumFiveWayNavVersion) succeeds
It supports the T5/Treo650 navigator API. You could add a call to
FtrGet(sysFileCSystem, sysFtrNumUIHardwareFlags) to see if it
actually has the navigator hardware. Note that this call fails on
the T5 simulator, which sucks (are you listening palmOne?).
else
if FtrGet(hsFtrCreator, hsFtrIDNavigationSupported) succeeds
It supports the Treo600 navigator API
endif
endif
endif
If none of the FtrGets succeed, there is no navigator.
--
Dave Carrigan
Seattle, WA, USA
[EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680
UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL
Dave is currently listening to The Boomtown Rats - Diamond Smiles (The Fine Art
Of Surfacing)
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/