×
Namespaces

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

How to detect Nokia special keys in Canvas mode

From Nokia Developer 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
60 page views in the last 30 days.
×