Categories: Java | Java ME | How To | Code Examples | UI
This page was last modified 08:28, 25 September 2007.
How to detect Nokia special keys in Canvas mode
From Forum Nokia Wiki
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
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Customizing e61i | pkiula | General Discussion | 4 | 2008-03-21 03:07 |
| Canvas size on 3rd edition phones | giaperrucci | Mobile Java Games | 2 | 2008-03-11 04:44 |
| Correct pause detection not always possible on Nokia phones | alexey_kr | Mobile Java General | 4 | 2005-03-21 09:16 |
| Nokia 12 configuration | raimonds.c | Nokia M2M | 1 | 2004-01-27 10:46 |
| Nokia 6131 joypad button event? | RageMatrix | Mobile Java General | 1 | 2006-09-14 00:52 |
