$eventcmd— Command/object describing a Canvas event.
The MIDP 2.0 commands in Hecl are more complete and more advanced than the 1.0 commands, and should be used if possible. This is a fairly complete list of which devices are MIDP2.0 capable: http://devices.j2mepolish.org/interactivedb/searchdevices.faces
To fully understand these commands, a perusal of the documentation here is likely a good idea: http://java.sun.com/javame/reference/apis/jsr118/ In particular, look at the lcdui package.
This code was originally written and contributed to Hecl by Wolfgang Kechel. Thanks!