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 14:55, 5 January 2014 by lpvalente (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Constantes para teclas especiais (modo Canvas no Java ME)

From Wiki
Jump to: navigation, search
Article Metadata

Artigo
Tradução:
Por maiconherverton
Última alteração feita por lpvalente em 05 Jan 2014

Cada aparelho Java ME possui teclas padronizadas para jogos (Game keys) e que são implementadas como constantes em cada telefone, assim você pode comparar/verificar-las no método keyPressed da classe Canvas. Abaixo você tem acesso a estas novas constantes que podem ser usadas como as do MIDP:

  • 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 5 January 2014, at 14:55.
243 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.

×