reset_cursor.m

来自「国际象棋程序,解压到当前目录,在matlab窗口输入chess即可应用」· M 代码 · 共 31 行

M
31
字号
function reset_cursor
% reset_cursor resets the cursor
% The global cursor structur contents is deleted.
%
% Example
% Assume a cursor was set, then |reset_cursor| removes it.
%
% See also: cursorListener, setCursor, stopCursor
%
%% Signature
% Author: W.Garn
% E-Mail: wgarn@yahoo.com
% Date: 2006/03/23 12:00:00 
% 
% Copyright 2006 W.Garn

global cursor

cursor.from = [];
cursor.to   = [];
cursor.current = [];

try
    delete(cursor.from_h);
    delete(cursor.to_h);
catch
    disp('Can not trace cursor handles - perhaps program was aborted.');
end

cursor.from_h=[];
cursor.to_h=[];

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?