16 lines
432 B
Plaintext
16 lines
432 B
Plaintext
void MsgLoop()
|
|
{
|
|
U8 p1=0,p2=0,cmd=0;
|
|
coutln "Use $$LK \"these\",\"MN:MSG_CMD\"$$ defines "
|
|
"in your programs instead of hardcoded numbers.";
|
|
coutln "Press ESC to Exit";
|
|
while (cmd!=MSG_KEY_DOWN || (p1!=CH_ESC && p1!=CH_CTRLQ)) {
|
|
cmd=GetMsg(&p1,&p2,-2);
|
|
// The following fixes the cursor position
|
|
LtfBottom(Fs->cur_ltf);
|
|
PrintF("CMD:%02X P1:%08X P2:%08X\r\n",cmd,p1,p2);
|
|
}
|
|
}
|
|
|
|
MsgLoop;
|