> Go to PalmOne download the 5-way-SDK and use the defines there. Sigh... OK, I finally figured it out. For those of you who are as stupid as me and/or have as much trouble as me decyphering the above cryptic instruction, here is what exactly needs to be done:
1) Go to http://developers.palmone.com and log in to the Members area. (You'll need a - free - registration.) 2) Go to Development Resources (click the link on the left) and search for Device: Any, Resource Type: SDK's & Sample Code, Date: Any. Among the returned results, locate "palmOne SDK 4.1 - 4.1 Header Files" and download it (the file "palmOne_SDK_4_1_palmOneHeadersPublic_4_1.zip"). 3) UnZIP the contents of this file to a place where you keep the SDKs and tell your environment to search for include files in that place too. How exactly you do the latter depends on what development environment you use; I use the PalmOS Development Suite; other environments like CodeWarrior and the GNU suite would require you to change the settings in different ways. 4) In your program, have #include <Common/System/palmOneNavigator.h> The necessary macros are defined there. That file includes other files from the SDK, that's why it is necessary to you tell your compiler to search the whole place for include files; you can't just copy the palmOneNavigator.h file to your usual include directory (or project) and include it. 5) When you want to check for the middle button of the 5-way control, do something like this: switch (eventP->eType) { case keyDownEvent: if (NavSelectPressed (eventP)) { // Do something when the middle button is pressed handled = true; } break; // : // : default: break; } Some other useful macros to test the other parts of the 5-way control are if (NavDirectionPressed(eventP, Left)) if (NavDirectionPressed(eventP, Right)) if (NavDirectionPressed(eventP, Up)) - also works without 5-way if (NavDirectionPressed(eventP, Down)) - also works without 5-way Regards, Vesselin -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
