nonethespinosa / microemu

Automatically exported from code.google.com/p/microemu
0 stars 0 forks source link

Android - "menu" keyevent in fullscreen Canvas #53

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Can't receive keyevent from "menu" key on full-screen Canvas. Is it possible 
(or is it already fixed in later revisions) ?

microemu r2377

Original issue reported on code.google.com by vitalyster on 15 Jun 2010 at 5:38

GoogleCodeExporter commented 9 years ago
r2390 didn't helps

Original comment by vitalyster on 15 Jun 2010 at 7:10

GoogleCodeExporter commented 9 years ago
There is no mapping for the "menu" key in MIDP at all. "menu" key is used by 
the MicroEmulator to pop-up commands bar of the previously added commands with 
the Displayable.addCommand method.

Original comment by bar...@gmail.com on 18 Jun 2010 at 6:34

GoogleCodeExporter commented 9 years ago
Is it able to separate standard Canvas and full-screen Canvas logic?
- if we are in standard Canvas: work with Commands
- if we are in full-screen Canvas: receive keyevents

Most j2me implementations work as described above.

(I have found ignored keys in sources, but simple enabling "menu" is not good)

Original comment by vitalyster on 18 Jun 2010 at 10:54

GoogleCodeExporter commented 9 years ago
I have found good description of this case in Canvas JavaDoc:

When the Canvas is in full-screen mode, if there is no command listener 
present, the device may choose to deliver key code events for keys that would 
otherwise be reserved for delivery of commands.

So, to summarize I agree with you.

Original comment by bar...@gmail.com on 18 Jun 2010 at 12:22