On Friday 09 June 2006 15:07, matt ingalls wrote: > what is the old way and what is the new way? kkeycode[, kkeydown] sensekey If 'kkeydown' is not present, the opcode behaves in the original way, that is, if the state of a key just changes from released to pressed, it returns the ASCII code, otherwise it returns -1. If the optional output argument is present, the ASCII code is returned on both key press and key release events, and 'kkeydown' is 1 in the first case, and 0 otherwise. When nothing happens, -1, 0 is returned. Optionally, to make the opcode really useful, a set of codes >= 128 could be defined for function, control, and modifier keys. Also, in the "advanced" mode, the key code should ideally not be altered by any modifiers, e.g. shift+1 may be better returned as separate "shift" and "1" events, rather than "!". _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net