I’m currently doing a j2me project, and I am wondering what key code I will use for the keylistener when I press letters like A, B, C, etc?
I’m deploying the j2me in a QWERTY phone – SAMSUNG CH@T 223.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
On
Canvas.keyPressedthekeyCodeparameter will hold the Unicode value of the corresponding character of the pressed key.Depending on the keyboard mode the value might vary. For example, the same key might generate ‘d’, ‘D’ or ‘4’.
The modes are: normal (lower case letters), shift/caps (high case letters) and alt (numbers and symbols).