// new MoSync project
// helloworld project
// Modlet project
// template
#include
using namespace MAUtil;
class MyMoblet : public Moblet {
public:
MyMoblet(){
// toDo initialisation
maSetColor(0xFFFFFFFF);
maDrawText(10,10,"hello there");
maUpdateScreen();
}
void keyPressEvent(int keyCode){
// toDo: handle key presses
if (keyCode == MAK_0)
maExit(0);
}
void keyPressRelease(int keyCode){
// toDo: handle key releases
}
}
// F11 - compile, build
No comments:
Post a Comment