2021-07-03 05:07:57 +01:00
<!DOCTYPE HTML>
< html >
< head >
< meta http-equiv = "Content-Type" content = "text/html;charset=US-ASCII" >
2021-10-27 08:28:16 +01:00
< meta name = "generator" content = "ZealOS V1.04" >
2021-07-03 05:07:57 +01:00
< style type = "text/css" >
2021-10-08 07:06:11 +01:00
body {background-color:#1f1f1f;}
.cF0{color:#e3e3e3;background-color:#1f1f1f;}
.cF1{color:#4f84a6;background-color:#1f1f1f;}
.cF2{color:#73a255;background-color:#1f1f1f;}
.cF3{color:#297582;background-color:#1f1f1f;}
.cF4{color:#b34f4b;background-color:#1f1f1f;}
.cF5{color:#8a52c3;background-color:#1f1f1f;}
.cF6{color:#b7822f;background-color:#1f1f1f;}
.cF7{color:#444444;background-color:#1f1f1f;}
.cF8{color:#6d6d6d;background-color:#1f1f1f;}
.cF9{color:#94bfde;background-color:#1f1f1f;}
.cFA{color:#a1ce97;background-color:#1f1f1f;}
.cFB{color:#6db4be;background-color:#1f1f1f;}
.cFC{color:#e88e88;background-color:#1f1f1f;}
.cFD{color:#ca94e8;background-color:#1f1f1f;}
.cFE{color:#d4b475;background-color:#1f1f1f;}
.cFF{color:#1f1f1f;background-color:#1f1f1f;}
2021-07-03 05:07:57 +01:00
< / style >
< / head >
< body >
2021-07-05 01:12:38 +01:00
< pre style = "font-family:monospace;font-size:12pt" >
2021-07-03 05:07:57 +01:00
< a name = "l1" > < / a > < span class = cF1 > U0< / span > < span class = cF0 > < / span > < span class = cF5 > PutKey< / span > < span class = cF0 > (< / span > < span class = cF9 > I64< / span > < span class = cF0 > ch=< / span > < span class = cFE > 0< / span > < span class = cF0 > , < / span > < span class = cF9 > I64< / span > < span class = cF0 > sc=< / span > < span class = cFE > 0< / span > < span class = cF0 > )
< a name = "l2" > < / a > {< / span > < span class = cF2 > //See < / span > < span class = cF4 > < u > Keyboard Devices< / u > < / span > < span class = cF2 > .< / span > < span class = cF0 >
2021-07-04 23:11:34 +01:00
< a name = "l3" > < / a > < / span > < span class = cF9 > CKeyDevEntry< / span > < span class = cF0 > *tmpk;
2021-07-03 05:07:57 +01:00
< a name = "l4" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l5" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (ch || sc)
< a name = "l6" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l7" > < / a > tmpk = < / span > < span class = cFB > keydev< / span > < span class = cF0 > .put_key_head.next;
< a name = "l8" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (!< / span > < span class = cF5 > Bt< / span > < span class = cF7 > (< / span > < span class = cF0 > & < / span > < span class = cF5 > Fs< / span > < span class = cF0 > -> display_flags, < / span > < span class = cF3 > DISPLAYf_SILENT< / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l9" > < / a > {
< a name = "l10" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cFB > kbd< / span > < span class = cF0 > .scan_code & < / span > < span class = cF3 > SCF_SCROLL< / span > < span class = cF0 > & & < / span > < span class = cFB > sys_focus_task< / span > < span class = cF0 > == < / span > < span class = cF5 > Fs< / span > < span class = cF0 > )
< a name = "l11" > < / a > < / span > < span class = cF1 > while< / span > < span class = cF0 > (< / span > < span class = cFB > kbd< / span > < span class = cF0 > .scan_code & < / span > < span class = cF3 > SCF_SCROLL< / span > < span class = cF0 > )
< a name = "l12" > < / a > < / span > < span class = cF5 > Yield< / span > < span class = cF0 > ; < / span > < span class = cF2 > //Wait on SCROLL LOCK Key< / span > < span class = cF0 >
< a name = "l13" > < / a > < / span > < span class = cF1 > while< / span > < span class = cF0 > (tmpk != & < / span > < span class = cFB > keydev< / span > < span class = cF0 > .put_key_head)
< a name = "l14" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l15" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cF7 > (< / span > < span class = cF0 > !(sc & < / span > < span class = cF3 > SCF_KEY_DESC< / span > < span class = cF0 > ) || tmpk-> flags & < / span > < span class = cF3 > KDF_HAS_DESCS< / span > < span class = cF7 > )< / span > < span class = cF0 > & & < / span > < span class = cF7 > (< / span > < span class = cF0 > *tmpk-> put_key< / span > < span class = cF7 > )(< / span > < span class = cF0 > ch, sc< / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l16" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
< a name = "l17" > < / a > tmpk = tmpk-> next;
< a name = "l18" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l19" > < / a > }
< a name = "l20" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = "l21" > < / a > }
< a name = "l22" > < / a >
< a name = "l23" > < / a > < / span > < span class = cF1 > U0< / span > < span class = cF0 > < / span > < span class = cF5 > PutChars< / span > < span class = cF0 > (< / span > < span class = cF9 > U64< / span > < span class = cF0 > ch)
< a name = "l24" > < / a > {< / span > < span class = cF2 > //Output chars. Up to 8 chars in a single U64.< / span > < span class = cF0 >
2021-07-26 20:29:49 +01:00
< a name = "l25" > < / a > < / span > < span class = cF2 > //Don't use this. < / span > < a href = "https://zeal-operating-system.github.io/ZealOS/Doc/CosmiC.DD.html#l48" > < span class = cF4 > See Print() shortcut.< / span > < / a > < span class = cF0 >
2021-07-04 23:11:34 +01:00
< a name = "l26" > < / a > < / span > < span class = cF1 > while< / span > < span class = cF0 > (ch)
< a name = "l27" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l28" > < / a > < / span > < span class = cF5 > PutKey< / span > < span class = cF0 > (ch & < / span > < span class = cFE > 255< / span > < span class = cF0 > , < / span > < span class = cFE > 0< / span > < span class = cF0 > );
< a name = "l29" > < / a > ch > > = < / span > < span class = cFE > 8< / span > < span class = cF0 > ;
< a name = "l30" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = "l31" > < / a > }
< a name = "l32" > < / a >
< a name = "l33" > < / a > < / span > < span class = cF1 > U0< / span > < span class = cF0 > < / span > < span class = cF5 > PutS< / span > < span class = cF0 > (< / span > < span class = cF1 > U8< / span > < span class = cF0 > *st)
2021-07-26 20:29:49 +01:00
< a name = "l34" > < / a > {< / span > < span class = cF2 > //Use < / span > < a href = "https://zeal-operating-system.github.io/ZealOS/Kernel/StrPrint.CC.html#l1110" > < span class = cF4 > Print< / span > < / a > < span class = cF2 > (). See < / span > < span class = cF4 > < u > Keyboard Devices< / u > < / span > < span class = cF2 > .< / span > < span class = cF0 >
< a name = "l35" > < / a > < / span > < span class = cF2 > //Don't use this. < / span > < a href = "https://zeal-operating-system.github.io/ZealOS/Doc/CosmiC.DD.html#l48" > < span class = cF4 > See Print() shortcut.< / span > < / a > < span class = cF0 >
2021-07-04 23:11:34 +01:00
< a name = "l36" > < / a > < / span > < span class = cF9 > I64< / span > < span class = cF0 > ch;
< a name = "l37" > < / a > < / span > < span class = cF1 > U8< / span > < span class = cF0 > *ptr;
< a name = "l38" > < / a > < / span > < span class = cF1 > Bool< / span > < span class = cF0 > cont = < / span > < span class = cF3 > TRUE< / span > < span class = cF0 > ;
< a name = "l39" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (!st) < / span > < span class = cF1 > return< / span > < span class = cF0 > ;
< a name = "l40" > < / a > < / span > < span class = cF9 > CKeyDevEntry< / span > < span class = cF0 > *tmpk = < / span > < span class = cFB > keydev< / span > < span class = cF0 > .put_key_head.next;
2021-07-03 05:07:57 +01:00
< a name = "l41" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l42" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (!< / span > < span class = cF5 > Bt< / span > < span class = cF7 > (< / span > < span class = cF0 > & < / span > < span class = cF5 > Fs< / span > < span class = cF0 > -> display_flags, < / span > < span class = cF3 > DISPLAYf_SILENT< / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l43" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l44" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cFB > kbd< / span > < span class = cF0 > .scan_code & < / span > < span class = cF3 > SCF_SCROLL< / span > < span class = cF0 > & & < / span > < span class = cFB > sys_focus_task< / span > < span class = cF0 > == < / span > < span class = cF5 > Fs< / span > < span class = cF0 > )
< a name = "l45" > < / a > < / span > < span class = cF1 > while< / span > < span class = cF0 > (< / span > < span class = cFB > kbd< / span > < span class = cF0 > .scan_code & < / span > < span class = cF3 > SCF_SCROLL< / span > < span class = cF0 > )
< a name = "l46" > < / a > < / span > < span class = cF5 > Yield< / span > < span class = cF0 > ;
< a name = "l47" > < / a > < / span > < span class = cF1 > while< / span > < span class = cF0 > (cont & & tmpk != & < / span > < span class = cFB > keydev< / span > < span class = cF0 > .put_key_head)
< a name = "l48" > < / a > {
< a name = "l49" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (tmpk-> put_s)
< a name = "l50" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l51" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cF7 > (< / span > < span class = cF0 > *tmpk-> put_s< / span > < span class = cF7 > )(< / span > < span class = cF0 > st< / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l52" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
< a name = "l53" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l54" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l55" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l56" > < / a > ptr = st;
< a name = "l57" > < / a > < / span > < span class = cF1 > while< / span > < span class = cF0 > (ch = *ptr++)
< a name = "l58" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cF7 > (< / span > < span class = cF0 > *tmpk-> put_key< / span > < span class = cF7 > )(< / span > < span class = cF0 > ch, < / span > < span class = cFE > 0< / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l59" > < / a > cont = < / span > < span class = cF3 > FALSE< / span > < span class = cF0 > ;
< a name = "l60" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l61" > < / a > tmpk = tmpk-> next;
< a name = "l62" > < / a > }
< a name = "l63" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = "l64" > < / a > }
< a name = "l65" > < / a >
< a name = "l66" > < / a > < / span > < span class = cF1 > U0< / span > < span class = cF0 > < / span > < span class = cF5 > KeyDescSet< / span > < span class = cF0 > (< / span > < span class = cF1 > U8< / span > < span class = cF0 > *format, ...)
Rename abs_addres to abs_address.
Update documentation/comments to rename addr, fun, var, stmt, blk, desc, reg, seg, ptr, dup, clus, val, and bttn, to address, function, variable, statement, block, description, register, segment, pointer, duplicate, cluster, value, and button, respectively.
2021-10-07 02:35:32 +01:00
< a name = "l67" > < / a > {< / span > < span class = cF2 > //Call this from key handler to report description in < / span > < a href = "https://zeal-operating-system.github.io/ZealOS/System/Training.CC.html#l159" > < span class = cF4 > KeyMap< / span > < / a > < span class = cF2 > ().< / span > < span class = cF0 >
2021-07-04 23:11:34 +01:00
< a name = "l68" > < / a > < / span > < span class = cF1 > U8< / span > < span class = cF0 > *buf = < / span > < span class = cF5 > StrPrintJoin< / span > < span class = cF0 > (< / span > < span class = cF3 > NULL< / span > < span class = cF0 > , format, argc, argv);
2021-07-03 05:07:57 +01:00
< a name = "l69" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l70" > < / a > < / span > < span class = cF5 > StrCopy< / span > < span class = cF0 > (< / span > < span class = cFB > keydev< / span > < span class = cF0 > .desc, buf);
< a name = "l71" > < / a > < / span > < span class = cFB > keydev< / span > < span class = cF0 > .handler = < / span > < span class = cF5 > Caller< / span > < span class = cF0 > ;
< a name = "l72" > < / a > < / span > < span class = cF5 > Free< / span > < span class = cF0 > (buf);
2021-07-03 05:07:57 +01:00
< a name = "l73" > < / a > }
< a name = "l74" > < / a >
< a name = "l75" > < / a > < / span > < span class = cF1 > U0< / span > < span class = cF0 > < / span > < span class = cF5 > KeyDevRemove< / span > < span class = cF0 > (< / span > < span class = cF9 > CKeyDevEntry< / span > < span class = cF0 > *tmpk)
< a name = "l76" > < / a > {< / span > < span class = cF2 > //Remove StdOut hook and free.< / span > < span class = cF0 >
2021-07-04 23:11:34 +01:00
< a name = "l77" > < / a > < / span > < span class = cF5 > QueueRemove< / span > < span class = cF0 > (tmpk);
< a name = "l78" > < / a > < / span > < span class = cF5 > Free< / span > < span class = cF0 > (tmpk);
2021-07-03 05:07:57 +01:00
< a name = "l79" > < / a > }
< a name = "l80" > < / a >
< a name = "l81" > < / a > < / span > < span class = cF9 > CKeyDevEntry< / span > < span class = cF0 > *< / span > < span class = cF5 > KeyDevAdd< / span > < span class = cF0 > (< / span > < span class = cF1 > Bool< / span > < span class = cF0 > < / span > < span class = cF7 > (< / span > < span class = cF0 > *fp_put_key< / span > < span class = cF7 > )(< / span > < span class = cF9 > I64< / span > < span class = cF0 > ch, < / span > < span class = cF9 > I64< / span > < span class = cF0 > sc< / span > < span class = cF7 > )< / span > < span class = cF0 > , < / span > < span class = cF1 > Bool< / span > < span class = cF0 > < / span > < span class = cF7 > (< / span > < span class = cF0 > *fp_puts< / span > < span class = cF7 > )(< / span > < span class = cF1 > U8< / span > < span class = cF0 > *st< / span > < span class = cF7 > )< / span > < span class = cF0 > , < / span > < span class = cF9 > I64< / span > < span class = cF0 > priority, < / span > < span class = cF1 > Bool< / span > < span class = cF0 > key_descs=< / span > < span class = cF3 > FALSE< / span > < span class = cF0 > )
< a name = "l82" > < / a > {< / span > < span class = cF2 > //Places hook in StdOut chain. See < / span > < span class = cF4 > < u > Keyboard Devices< / u > < / span > < span class = cF2 > .< / span > < span class = cF0 >
2021-07-06 21:15:26 +01:00
< a name = "l83" > < / a > < / span > < span class = cF9 > CKeyDevEntry< / span > < span class = cF0 > *tmpk = < / span > < span class = cFB > keydev< / span > < span class = cF0 > .put_key_head.last, *tmpk1 = < / span > < span class = cF5 > SysCAlloc< / span > < span class = cF0 > (< / span > < span class = cF1 > sizeof< / span > < span class = cF7 > (< / span > < span class = cF9 > CKeyDevEntry< / span > < span class = cF7 > )< / span > < span class = cF0 > );
2021-07-03 05:07:57 +01:00
< a name = "l84" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l85" > < / a > tmpk1-> put_key = fp_put_key;
< a name = "l86" > < / a > tmpk1-> put_s = fp_puts;
< a name = "l87" > < / a > tmpk1-> priority = priority;
< a name = "l88" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (key_descs)
< a name = "l89" > < / a > tmpk1-> flags |= < / span > < span class = cF3 > KDF_HAS_DESCS< / span > < span class = cF0 > ;
< a name = "l90" > < / a > < / span > < span class = cF1 > while< / span > < span class = cF0 > (tmpk-> priority > priority)
< a name = "l91" > < / a > tmpk = tmpk-> last;
< a name = "l92" > < / a > < / span > < span class = cF5 > QueueInsert< / span > < span class = cF0 > (tmpk1, tmpk);
< a name = "l93" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (tmpk-> priority == priority)
< a name = "l94" > < / a > < / span > < span class = cF5 > KeyDevRemove< / span > < span class = cF0 > (tmpk);
2021-07-03 05:07:57 +01:00
< a name = "l95" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l96" > < / a > < / span > < span class = cF1 > return< / span > < span class = cF0 > tmpk1;
2021-07-03 05:07:57 +01:00
< a name = "l97" > < / a > }
< a name = "l98" > < / a >
< a name = "l99" > < / a > < / span > < span class = cF1 > Bool< / span > < span class = cF0 > < / span > < span class = cFD > KDRawPutKey< / span > < span class = cF0 > (< / span > < span class = cF9 > I64< / span > < span class = cF0 > ch, < / span > < span class = cF9 > I64< / span > < span class = cF0 > )
< a name = "l100" > < / a > {
2021-07-04 23:11:34 +01:00
< a name = "l101" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cF5 > IsRaw< / span > < span class = cF0 > )
< a name = "l102" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l103" > < / a > < / span > < span class = cF5 > RawPutChar< / span > < span class = cF0 > (ch);
< a name = "l104" > < / a > < / span > < span class = cF1 > return< / span > < span class = cF0 > < / span > < span class = cF3 > TRUE< / span > < span class = cF0 > ;
< a name = "l105" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l106" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l107" > < / a > < / span > < span class = cF1 > return< / span > < span class = cF0 > < / span > < span class = cF3 > FALSE< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l108" > < / a > }
< a name = "l109" > < / a >
< a name = "l110" > < / a > < / span > < span class = cF1 > Bool< / span > < span class = cF0 > < / span > < span class = cFD > KDRawPutS< / span > < span class = cF0 > (< / span > < span class = cF1 > U8< / span > < span class = cF0 > *st)
< a name = "l111" > < / a > {
2021-07-04 23:11:34 +01:00
< a name = "l112" > < / a > < / span > < span class = cF9 > I64< / span > < span class = cF0 > ch;
2021-07-03 05:07:57 +01:00
< a name = "l113" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l114" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cF5 > IsRaw< / span > < span class = cF0 > )
< a name = "l115" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l116" > < / a > < / span > < span class = cF1 > while< / span > < span class = cF0 > (ch = *st++)
< a name = "l117" > < / a > < / span > < span class = cF5 > RawPutChar< / span > < span class = cF0 > (ch);
< a name = "l118" > < / a > < / span > < span class = cF1 > return< / span > < span class = cF0 > < / span > < span class = cF3 > TRUE< / span > < span class = cF0 > ;
< a name = "l119" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l120" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l121" > < / a > < / span > < span class = cF1 > return< / span > < span class = cF0 > < / span > < span class = cF3 > FALSE< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l122" > < / a > }
< a name = "l123" > < / a >
< a name = "l124" > < / a > < / span > < span class = cF1 > Bool< / span > < span class = cF0 > < / span > < span class = cFD > KDInputFilterPutKey< / span > < span class = cF0 > (< / span > < span class = cF9 > I64< / span > < span class = cF0 > ch, < / span > < span class = cF9 > I64< / span > < span class = cF0 > scan_code)
< a name = "l125" > < / a > {
2021-07-04 23:11:34 +01:00
< a name = "l126" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cF5 > Bt< / span > < span class = cF7 > (< / span > < span class = cF0 > & < / span > < span class = cF5 > Fs< / span > < span class = cF0 > -> task_flags, < / span > < span class = cF3 > TASKf_INPUT_FILTER_TASK< / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l127" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l128" > < / a > < / span > < span class = cF5 > Message< / span > < span class = cF0 > (< / span > < span class = cF3 > MESSAGE_KEY_DOWN< / span > < span class = cF0 > , ch, scan_code);
< a name = "l129" > < / a > < / span > < span class = cF1 > return< / span > < span class = cF0 > < / span > < span class = cF3 > TRUE< / span > < span class = cF0 > ;
< a name = "l130" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l131" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l132" > < / a > < / span > < span class = cF1 > return< / span > < span class = cF0 > < / span > < span class = cF3 > FALSE< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l133" > < / a > }
< a name = "l134" > < / a >
< a name = "l135" > < / a > < / span > < span class = cF1 > Bool< / span > < span class = cF0 > < / span > < span class = cFD > KDInputFilterPutS< / span > < span class = cF0 > (< / span > < span class = cF1 > U8< / span > < span class = cF0 > *st)
< a name = "l136" > < / a > {
2021-07-04 23:11:34 +01:00
< a name = "l137" > < / a > < / span > < span class = cF9 > I64< / span > < span class = cF0 > ch;
2021-07-03 05:07:57 +01:00
< a name = "l138" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l139" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cF5 > Bt< / span > < span class = cF7 > (< / span > < span class = cF0 > & < / span > < span class = cF5 > Fs< / span > < span class = cF0 > -> task_flags, < / span > < span class = cF3 > TASKf_INPUT_FILTER_TASK< / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l140" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l141" > < / a > < / span > < span class = cF1 > while< / span > < span class = cF0 > (ch = *st++)
< a name = "l142" > < / a > < / span > < span class = cF5 > Message< / span > < span class = cF0 > (< / span > < span class = cF3 > MESSAGE_KEY_DOWN< / span > < span class = cF0 > , ch, < / span > < span class = cFE > 0< / span > < span class = cF0 > );
< a name = "l143" > < / a > < / span > < span class = cF1 > return< / span > < span class = cF0 > < / span > < span class = cF3 > TRUE< / span > < span class = cF0 > ;
< a name = "l144" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l145" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l146" > < / a > < / span > < span class = cF1 > return< / span > < span class = cF0 > < / span > < span class = cF3 > FALSE< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l147" > < / a > }
< a name = "l148" > < / a >
< a name = "l149" > < / a > < / span > < span class = cF1 > U0< / span > < span class = cF0 > < / span > < span class = cFD > CtrlAltDel< / span > < span class = cF0 > (< / span > < span class = cF9 > I64< / span > < span class = cF0 > )
< a name = "l150" > < / a > {
2021-07-04 23:11:34 +01:00
< a name = "l151" > < / a > < / span > < span class = cF5 > LBts< / span > < span class = cF0 > (< / span > < span class = cFB > sys_ctrl_alt_flags< / span > < span class = cF0 > , < / span > < span class = cF3 > CTRL_ALT_DEL< / span > < span class = cF0 > );
2021-07-03 05:07:57 +01:00
< a name = "l152" > < / a > }
< a name = "l153" > < / a >
< a name = "l154" > < / a > < / span > < span class = cF1 > U0< / span > < span class = cF0 > < / span > < span class = cFD > CtrlAltC< / span > < span class = cF0 > (< / span > < span class = cF9 > I64< / span > < span class = cF0 > )
< a name = "l155" > < / a > {
2021-07-04 23:11:34 +01:00
< a name = "l156" > < / a > < / span > < span class = cF5 > LBts< / span > < span class = cF0 > (< / span > < span class = cFB > sys_ctrl_alt_flags< / span > < span class = cF0 > , < / span > < span class = cF3 > CTRL_ALT_C< / span > < span class = cF0 > );
2021-07-03 05:07:57 +01:00
< a name = "l157" > < / a > }
< a name = "l158" > < / a >
< a name = "l159" > < / a > < / span > < span class = cF1 > U0< / span > < span class = cF0 > < / span > < span class = cFD > CtrlAltD< / span > < span class = cF0 > (< / span > < span class = cF9 > I64< / span > < span class = cF0 > )
< a name = "l160" > < / a > {
2021-07-04 23:11:34 +01:00
< a name = "l161" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (!< / span > < span class = cF5 > IsDebugMode< / span > < span class = cF0 > )
< a name = "l162" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l163" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cF5 > Fs< / span > < span class = cF0 > == < / span > < span class = cF5 > Gs< / span > < span class = cF0 > -> idle_task)
< a name = "l164" > < / a > < / span > < span class = cF5 > BptS< / span > < span class = cF0 > (< / span > < span class = cFB > sys_winmgr_task< / span > < span class = cF0 > -> rip, < / span > < span class = cFB > sys_winmgr_task< / span > < span class = cF0 > );
< a name = "l165" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l166" > < / a > < / span > < span class = cF5 > BptS< / span > < span class = cF0 > (*< / span > < span class = cFB > keydev< / span > < span class = cF0 > .ctrl_alt_ret_addr);
< a name = "l167" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = "l168" > < / a > }
< a name = "l169" > < / a >
< a name = "l170" > < / a > < / span > < span class = cF1 > U0< / span > < span class = cF0 > < / span > < span class = cFD > CtrlAltF< / span > < span class = cF0 > (< / span > < span class = cF9 > I64< / span > < span class = cF0 > )
< a name = "l171" > < / a > {
2021-07-04 23:11:34 +01:00
< a name = "l172" > < / a > < / span > < span class = cF5 > SwapI64< / span > < span class = cF0 > (& < / span > < span class = cFB > text< / span > < span class = cF0 > .font, & < / span > < span class = cFB > text< / span > < span class = cF0 > .aux_font);
2021-07-03 05:07:57 +01:00
< a name = "l173" > < / a > }
< a name = "l174" > < / a >
< a name = "l175" > < / a > < / span > < span class = cF1 > U0< / span > < span class = cF0 > < / span > < span class = cFD > CtrlAltM< / span > < span class = cF0 > (< / span > < span class = cF9 > I64< / span > < span class = cF0 > )
< a name = "l176" > < / a > {
2021-07-04 23:11:34 +01:00
< a name = "l177" > < / a > < / span > < span class = cF5 > Mute< / span > < span class = cF0 > (!< / span > < span class = cF5 > IsMute< / span > < span class = cF0 > );
2021-07-03 05:07:57 +01:00
< a name = "l178" > < / a > }
< a name = "l179" > < / a >
< a name = "l180" > < / a > < / span > < span class = cF1 > U0< / span > < span class = cF0 > < / span > < span class = cFD > CtrlAltN< / span > < span class = cF0 > (< / span > < span class = cF9 > I64< / span > < span class = cF0 > )
< a name = "l181" > < / a > {
2021-07-04 23:11:34 +01:00
< a name = "l182" > < / a > < / span > < span class = cF5 > LBts< / span > < span class = cF0 > (< / span > < span class = cFB > sys_ctrl_alt_flags< / span > < span class = cF0 > , < / span > < span class = cF3 > CTRL_ALT_TAB< / span > < span class = cF0 > );
2021-07-03 05:07:57 +01:00
< a name = "l183" > < / a > }
< a name = "l184" > < / a >
< a name = "l185" > < / a > < / span > < span class = cF1 > U0< / span > < span class = cF0 > < / span > < span class = cFD > CtrlAltT< / span > < span class = cF0 > (< / span > < span class = cF9 > I64< / span > < span class = cF0 > )
< a name = "l186" > < / a > {
2021-07-04 23:11:34 +01:00
< a name = "l187" > < / a > < / span > < span class = cF5 > User< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l188" > < / a > }
< a name = "l189" > < / a >
< a name = "l190" > < / a > < / span > < span class = cF1 > U0< / span > < span class = cF0 > < / span > < span class = cFD > CtrlAltV< / span > < span class = cF0 > (< / span > < span class = cF9 > I64< / span > < span class = cF0 > )
< a name = "l191" > < / a > {
2021-07-04 23:11:34 +01:00
< a name = "l192" > < / a > < / span > < span class = cF5 > LFBFlush< / span > < span class = cF0 > ;
< a name = "l193" > < / a > < / span > < span class = cFB > text< / span > < span class = cF0 > .is_fb_busy = < / span > < span class = cF3 > FALSE< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l194" > < / a > }
< a name = "l195" > < / a >
< a name = "l196" > < / a > < / span > < span class = cF1 > U0< / span > < span class = cF0 > < / span > < span class = cFD > CtrlAltX< / span > < span class = cF0 > (< / span > < span class = cF9 > I64< / span > < span class = cF0 > )
< a name = "l197" > < / a > {
2021-07-04 23:11:34 +01:00
< a name = "l198" > < / a > < / span > < span class = cF5 > LBts< / span > < span class = cF0 > (< / span > < span class = cFB > sys_ctrl_alt_flags< / span > < span class = cF0 > , < / span > < span class = cF3 > CTRL_ALT_X< / span > < span class = cF0 > );
2021-07-03 05:07:57 +01:00
< a name = "l199" > < / a > }
< a name = "l200" > < / a >
< a name = "l201" > < / a > < / span > < span class = cF1 > U0< / span > < span class = cF0 > < / span > < span class = cF5 > CtrlAltCBSet< / span > < span class = cF0 > (< / span > < span class = cF1 > U8< / span > < span class = cF0 > ch, < / span > < span class = cF1 > U0< / span > < span class = cF0 > < / span > < span class = cF7 > (< / span > < span class = cF0 > *fp_handler< / span > < span class = cF7 > )(< / span > < span class = cF9 > I64< / span > < span class = cF0 > sc< / span > < span class = cF7 > )< / span > < span class = cF0 > , < / span > < span class = cF1 > U8< / span > < span class = cF0 > *no_shift_desc=< / span > < span class = cF3 > NULL< / span > < span class = cF0 > , < / span > < span class = cF1 > U8< / span > < span class = cF0 > *shift_desc=< / span > < span class = cF3 > NULL< / span > < span class = cF0 > , < / span > < span class = cF1 > Bool< / span > < span class = cF0 > in_irq=< / span > < span class = cF3 > FALSE< / span > < span class = cF0 > )
< a name = "l202" > < / a > {< / span > < span class = cF2 > //Set callback for < CTRL-ALT-letter> .< / span > < span class = cF0 >
2021-07-04 23:11:34 +01:00
< a name = "l203" > < / a > ch = < / span > < span class = cF5 > ToUpper< / span > < span class = cF0 > (ch) - < / span > < span class = cF6 > 'A'< / span > < span class = cF0 > ;
< a name = "l204" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (ch < < / span > < span class = cFE > 26< / span > < span class = cF0 > )
< a name = "l205" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l206" > < / a > < / span > < span class = cFB > keydev< / span > < span class = cF0 > .fp_ctrl_alt_cbs[ch] = fp_handler;
2021-07-03 05:07:57 +01:00
< a name = "l207" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l208" > < / a > < / span > < span class = cF5 > Free< / span > < span class = cF0 > (< / span > < span class = cFB > keydev< / span > < span class = cF0 > .ctrl_alt_no_shift_descs[ch]);
< a name = "l209" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (no_shift_desc)
2021-07-06 21:15:26 +01:00
< a name = "l210" > < / a > < / span > < span class = cFB > keydev< / span > < span class = cF0 > .ctrl_alt_no_shift_descs[ch] = < / span > < span class = cF5 > SysStrNew< / span > < span class = cF0 > (no_shift_desc);
2021-07-04 23:11:34 +01:00
< a name = "l211" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l212" > < / a > < / span > < span class = cFB > keydev< / span > < span class = cF0 > .ctrl_alt_no_shift_descs[ch] = < / span > < span class = cF3 > NULL< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l213" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l214" > < / a > < / span > < span class = cF5 > Free< / span > < span class = cF0 > (< / span > < span class = cFB > keydev< / span > < span class = cF0 > .ctrl_alt_shift_descs[ch]);
< a name = "l215" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (shift_desc)
2021-07-06 21:15:26 +01:00
< a name = "l216" > < / a > < / span > < span class = cFB > keydev< / span > < span class = cF0 > .ctrl_alt_shift_descs[ch] = < / span > < span class = cF5 > SysStrNew< / span > < span class = cF0 > (shift_desc);
2021-07-04 23:11:34 +01:00
< a name = "l217" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l218" > < / a > < / span > < span class = cFB > keydev< / span > < span class = cF0 > .ctrl_alt_shift_descs[ch] = < / span > < span class = cF3 > NULL< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l219" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l220" > < / a > < / span > < span class = cF5 > BEqual< / span > < span class = cF0 > (& < / span > < span class = cFB > keydev< / span > < span class = cF0 > .ctrl_alt_in_irq_flags, ch, in_irq);
< a name = "l221" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = "l222" > < / a > }
< a name = "l223" > < / a >
< a name = "l224" > < / a > < / span > < span class = cF1 > U0< / span > < span class = cF0 > < / span > < span class = cFD > KeyDevInit< / span > < span class = cF0 > ()
< a name = "l225" > < / a > {
2021-07-04 23:11:34 +01:00
< a name = "l226" > < / a > < / span > < span class = cFB > keydev< / span > < span class = cF0 > .fp_ctrl_alt_cbs = < / span > < span class = cF5 > CAlloc< / span > < span class = cF0 > (< / span > < span class = cFE > 26< / span > < span class = cF0 > * < / span > < span class = cF1 > sizeof< / span > < span class = cF7 > (< / span > < span class = cF1 > U8< / span > < span class = cF0 > *< / span > < span class = cF7 > )< / span > < span class = cF0 > );
< a name = "l227" > < / a > < / span > < span class = cFB > keydev< / span > < span class = cF0 > .ctrl_alt_no_shift_descs = < / span > < span class = cF5 > CAlloc< / span > < span class = cF0 > (< / span > < span class = cFE > 26< / span > < span class = cF0 > * < / span > < span class = cF1 > sizeof< / span > < span class = cF7 > (< / span > < span class = cF1 > U8< / span > < span class = cF0 > *< / span > < span class = cF7 > )< / span > < span class = cF0 > );
< a name = "l228" > < / a > < / span > < span class = cFB > keydev< / span > < span class = cF0 > .ctrl_alt_shift_descs = < / span > < span class = cF5 > CAlloc< / span > < span class = cF0 > (< / span > < span class = cFE > 26< / span > < span class = cF0 > * < / span > < span class = cF1 > sizeof< / span > < span class = cF7 > (< / span > < span class = cF1 > U8< / span > < span class = cF0 > *< / span > < span class = cF7 > )< / span > < span class = cF0 > );
< a name = "l229" > < / a > < / span > < span class = cFB > keydev< / span > < span class = cF0 > .ctrl_alt_in_irq_flags = < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
< a name = "l230" > < / a > < / span > < span class = cF5 > MemSet< / span > < span class = cF0 > (& < / span > < span class = cFB > keydev< / span > < span class = cF0 > .put_key_head, < / span > < span class = cFE > 0< / span > < span class = cF0 > , < / span > < span class = cF1 > sizeof< / span > < span class = cF7 > (< / span > < span class = cF9 > CKeyDevEntry< / span > < span class = cF7 > )< / span > < span class = cF0 > );
< a name = "l231" > < / a > < / span > < span class = cF5 > QueueInit< / span > < span class = cF0 > (& < / span > < span class = cFB > keydev< / span > < span class = cF0 > .put_key_head);
< a name = "l232" > < / a > < / span > < span class = cF5 > KeyDevAdd< / span > < span class = cF0 > (& < / span > < span class = cFD > KDInputFilterPutKey< / span > < span class = cF0 > , & < / span > < span class = cFD > KDInputFilterPutS< / span > < span class = cF0 > , < / span > < span class = cFE > 0x40000000< / span > < span class = cF0 > , < / span > < span class = cF3 > FALSE< / span > < span class = cF0 > );
< a name = "l233" > < / a > < / span > < span class = cF5 > KeyDevAdd< / span > < span class = cF0 > (& < / span > < span class = cFD > KDRawPutKey< / span > < span class = cF0 > , & < / span > < span class = cFD > KDRawPutS< / span > < span class = cF0 > , < / span > < span class = cFE > 0x60000000< / span > < span class = cF0 > , < / span > < span class = cF3 > FALSE< / span > < span class = cF0 > );
< a name = "l234" > < / a > < / span > < span class = cF5 > CtrlAltCBSet< / span > < span class = cF0 > (< / span > < span class = cF6 > 'C'< / span > < span class = cF0 > , & < / span > < span class = cFD > CtrlAltC< / span > < span class = cF0 > , < / span > < span class = cF6 > " Cmd /Break Execution" < / span > < span class = cF0 > ,, < / span > < span class = cF3 > TRUE< / span > < span class = cF0 > );
< a name = "l235" > < / a > < / span > < span class = cF5 > CtrlAltCBSet< / span > < span class = cF0 > (< / span > < span class = cF6 > 'D'< / span > < span class = cF0 > , & < / span > < span class = cFD > CtrlAltD< / span > < span class = cF0 > , < / span > < span class = cF6 > " Cmd /Enter Debugger" < / span > < span class = cF0 > ,, < / span > < span class = cF3 > TRUE< / span > < span class = cF0 > );
< a name = "l236" > < / a > < / span > < span class = cF5 > CtrlAltCBSet< / span > < span class = cF0 > (< / span > < span class = cF6 > 'F'< / span > < span class = cF0 > , & < / span > < span class = cFD > CtrlAltF< / span > < span class = cF0 > , < / span > < span class = cF6 > " Cmd /Toggle Aux Font" < / span > < span class = cF0 > );
< a name = "l237" > < / a > < / span > < span class = cF5 > CtrlAltCBSet< / span > < span class = cF0 > (< / span > < span class = cF6 > 'M'< / span > < span class = cF0 > , & < / span > < span class = cFD > CtrlAltM< / span > < span class = cF0 > , < / span > < span class = cF6 > " Cmd /Toggle Mute" < / span > < span class = cF0 > );
< a name = "l238" > < / a > < / span > < span class = cF5 > CtrlAltCBSet< / span > < span class = cF0 > (< / span > < span class = cF6 > 'N'< / span > < span class = cF0 > , & < / span > < span class = cFD > CtrlAltN< / span > < span class = cF0 > , < / span > < span class = cF6 > " Cmd /Next Focus Task" < / span > < span class = cF0 > ,, < / span > < span class = cF3 > TRUE< / span > < span class = cF0 > );
< a name = "l239" > < / a > < / span > < span class = cF5 > CtrlAltCBSet< / span > < span class = cF0 > (< / span > < span class = cF6 > 'T'< / span > < span class = cF0 > , & < / span > < span class = cFD > CtrlAltT< / span > < span class = cF0 > , < / span > < span class = cF6 > " Cmd /Terminal Window" < / span > < span class = cF0 > );
< a name = "l240" > < / a > < / span > < span class = cF5 > CtrlAltCBSet< / span > < span class = cF0 > (< / span > < span class = cF6 > 'V'< / span > < span class = cF0 > , & < / span > < span class = cFD > CtrlAltV< / span > < span class = cF0 > , < / span > < span class = cF6 > " Cmd /VGA Flush" < / span > < span class = cF0 > ,, < / span > < span class = cF3 > TRUE< / span > < span class = cF0 > );
< a name = "l241" > < / a > < / span > < span class = cF5 > CtrlAltCBSet< / span > < span class = cF0 > (< / span > < span class = cF6 > 'X'< / span > < span class = cF0 > , & < / span > < span class = cFD > CtrlAltX< / span > < span class = cF0 > , < / span > < span class = cF6 > " Cmd /Kill Focused Task" < / span > < span class = cF0 > ,, < / span > < span class = cF3 > TRUE< / span > < span class = cF0 > );
2021-07-03 05:07:57 +01:00
< a name = "l242" > < / a > }
< / span > < / pre > < / body >
< / html >