TempleOSCD_140715.ISO

This commit is contained in:
Terry A. Davis authored and minexew committed 2018-09-08 21:46:09 +02:00
1 parent 7ef616a20e
commit 64f679eeb9
1095 files changed
+24814 -221011

No files matched your search

+10 -10
View File
@@ -5,7 +5,7 @@
U0 PullDownMenuDemo()
{
I64 msg_code,p1,p2;
I64 msg_code,a1,a2;
CMenuEntry *tempse;
MenuPush(
@@ -33,29 +33,29 @@ U0 PullDownMenuDemo()
"of the screen.\n\n";
do {
msg_code=GetMsg(&p1,&p2,1<<MSG_KEY_DOWN+1<<MSG_CMD);
"\nCmd:%d P1:%X P2:%X\n\n",msg_code,p1,p2;
msg_code=GetMsg(&a1,&a2,1<<MSG_KEY_DOWN+1<<MSG_CMD);
"\nCmd:%d A1:%X A2:%X\n\n",msg_code,a1,a2;
switch (msg_code) {
case MSG_KEY_DOWN:
switch (p1) { //ASCII
switch (a1) {//ASCII
case CH_SPACE:
Beep;
break;
case 0:
switch (p2.u8[0]) { //p2=Scan code
switch (a2.u8[0]) {//a2=Scan code
case SC_F1:
if (p2&SCF_SHIFT)
if (a2&SCF_SHIFT)
"About PullDown Demo\n";
else
"Test the menu.\n";
break;
case SC_DELETE:
if (p2&SCF_SHIFT)
if (a2&SCF_SHIFT)
"Cut\n";
break;
case SC_INS:
if (p2&SCF_SHIFT)
if (a2&SCF_SHIFT)
"Paste\n";
break;
}
@@ -67,7 +67,7 @@ U0 PullDownMenuDemo()
//I Recommend making your menu
//drive by key strokes, but you can
//use the $LK,"MSG_CMD",A="MN:MSG_CMD"$ val.
switch (p1) {
switch (a1) {
case M_OPTION1:
"Option # 1\n";
if (tempse=MenuEntryFind(Fs->cur_menu,"Misc/Opt1"))
@@ -82,7 +82,7 @@ U0 PullDownMenuDemo()
break;
}
} while (msg_code!=MSG_KEY_DOWN||(p1!=CH_SHIFT_ESC && p1!=CH_ESC));
} while (msg_code!=MSG_KEY_DOWN||(a1!=CH_SHIFT_ESC && a1!=CH_ESC));
MenuPop;
}