Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Revision as of 11:15, 4 June 2009 by tanjaluodes (Talk | contribs)

How to detect Nokia special keys in Canvas mode

From Wiki
Jump to: navigation, search

Every Java ME phone has standard and game keys that are implemented as constants in every phone, so you can compare them in the keyPressed method of the Canvas class.

But, there are more keys that you can capture if you are using a Nokia phone, using the Nokia UI API and FullCanvas. In this class, you have access to these new constants that can be used as the MIDP ones:

  • KEY_DOWN_ARROW
  • KEY_UP_ARROW
  • KEY_RIGHT_ARROW
  • KEY_LEFT_ARROW
  • KEY_SEND
  • KEY_END
  • KEY_SOFTKEY1
  • KEY_SOFTKEY2
  • KEY_SOFTKEY3
37 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×