www.pudn.com > matlab7.x.rar > wgfcnkey.m
function keypressed = wgfcnkey % Help file for mex function wgfcnkey.dll % WGFCNKEY.DLL is a mex file on Windows platform. % wgfcnKey.dll traps pressing of function keys (F1, F2, ..., F12) % in an MATLAB figure windowĄŁ % % Usage: % Use this function in the implementation of the KeyPressFcn function: % keypressed = wgfcnkey % Based on the returned value, you'll know whether a function % key was pressed. % % Input ---- None % % Output ---- a scaler % = 0, no function key was pressed % = 1, F1 was pressed % ... % = 12, F12 was pressed % = 13, left Shift was pressed % = 14, left Ctrl was pressed % = 15, left Alt was pressed % = 16, right Shift was pressed % = 17, right Ctrl was pressed % = 18, right Alt was pressed % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%