Chris Apers wrote:

Hi,
I'm want to be sure to detect 5way navigator with the correct version, but
there is
so many way to detect it, what is the good one and teh difference between :
FtrGet(navFtrCreator, navFtrVersion, &version); FtrGet(sysFtrCreator, sysFtrNumFiveWayNavVersion, &version) FtrGet(hsFtrCreator, hsFtrIDNavigationSupported, &version) Do I need to the those three requests ? I use : if (!FtrGet(hsFtrCreator, hsFtrIDNavigationSupported, &version)) {
                if (version >= 2)
                        OPTIONS_SET(kOpt5WayNavigatorV2);

        } else if (!FtrGet(sysFtrCreator, sysFtrNumFiveWayNavVersion,
&version)) {
                if (version >= 1)    // why 1 ?
                        OPTIONS_SET(kOpt5WayNavigatorV2);

        } else if (!FtrGet(navFtrCreator, navFtrVersion, &version)) {
                if (version >= 1)
                        OPTIONS_SET(kOpt5WayNavigatorV1);
        }

Hi Chris,

don't know about hsFtrIDNavigationSupported and sysFtrNumFiveWayNavVersion but navFtrVersion is the old PalmOne style used on older Tungstens and Zire models. It is quite important to catch this then you now you have to wait for PageUp/Down and NavLeft/Right/Select as described in the PalmOne 5Way SDK. You can also assume that everything else has either a valid Rocker implementation: look for PageUP/Down and RockerLeft/Right/Select or doesn't have a 5-way at all. Then you can only see PageUp/Down and HardButtons. The HardButtons could be only 2. It's the question if it is usefull to support such devices in the first case. I usually check for
* navFtrVersion to use NavChange stuff
* TapwaveSDK to use the Function and Trigger buttons
* default: see the Rocker devices above.

Regards
Henk


--
-------------------------------------------------------------------------
  Henk Jonas                                            [EMAIL PROTECTED]
  Palm OS ® certified developer

  Please contact me, if you need an off-site contract worker.
-------------------------------------------------------------------------

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to