It is now possible to have a fully functional (also in the new advanced mode) sensekey opcode, using FLTK widgets. I have added an optional argument to FLpanel: if this is not zero, that window will send keyboard events to the sensekey opcode. Note that only one window can be used for this purpose. Here is an example CSD: -d -+rtaudio=null -o dac -b 32 -B 64 sr = 48000 ksmps = 32 nchnls = 1 ; if the FLTK opcodes are commented out, sensekey will read keyboard ; events from stdin FLpanel "", 150, 50, 100, 100, 0, 1 FLlabel 18, 10, 1, 0, 0, 0 FLgroup "Keyboard Input", 150, 50, 0, 0, 0 FLgroupEnd FLpanelEnd FLrun instr 1 ktrig1 init 1 ktrig2 init 1 nxtKey1: k1, k2 sensekey if (k1 != -1 || k2 != 0) then printf "Key code = %02X, state = %d\n", ktrig1, k1, k2 ktrig1 = 3 - ktrig1 kgoto nxtKey1 endif nxtKey2: k3 sensekey if (k3 != -1) then printf "Character = '%c'\n", ktrig2, k3 ktrig2 = 3 - ktrig2 kgoto nxtKey2 endif endin i 1 0 3600 e _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net