Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

doubt in AndroidInputMethod.Java

2 views
Skip to first unread message

vivek_2010

unread,
Dec 6, 2010, 7:43:50 AM12/6/10
to microemulator-developers
Source: svn/trunk
File: AndroidInputMethod.java
Method: getKeyCode(KeyEvent keyEvent):int private
Ln: case KeyEvent.KEYCODE_DPAD_RIGHT :
resultKeyCode = -4;

Consider when KEYCODE_DPAD_RIGHT and KEYCODE_BACK occurs.
in both cases, resultKeyCode = -4
and our J2ME app receives -4 in both cases, in canvas keyPressed
event.
How do we distinguish between the two there?

I do not understand the reason to change KEYCODE_DPAD_RIGHT to -4. Is
there any specific reason to make that change?
Earlier, it was equal to Canvas.RIGHT which seems correct. It is also
correct when we browse the changes here
http://code.google.com/p/microemu/source/detail?r=2434

I think there is some problem in source code from main trunk. Please
confirm.

regards,
vivek

Reply all
Reply to author
Forward
0 new messages