Educational materials

Example MATLAB - Key Handler Release function

Note: MATLAB release 2007a or greater is required to run this code

Annotations

Raw Source Code

function keyHandlerReleaseAdv(src,evnt)
% usage: keyHandlerReleaseAdv (src, evnt)
% purpose: Capture keystroke releases from the keyboard
    global   gCurrentKeyPress
    
    
key = get(gcf,'CurrentCharacter');

% Convert to an integer
key = key-0;

gCurrentKeyPress(key) = 0;
end
r1 - 28 Nov 2007 - 19:01:19 - AaronStriegel
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Syndicate this site RSSATOM