Namespaces
Variants
Actions

How to detect Nokia special keys in Canvas mode

Jump to: navigation, search
Article Metadata

Article
Created: firt (15 Apr 2007)
Last edited: hamishwillee (14 Sep 2012)

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
This page was last modified on 14 September 2012, at 04:36.
155 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved