How do I prevent resuming after a callback function interruption?
이전 댓글 표시
Hello,
I am coding the card game ERS. When I interrupt the computations under one keypress with another keypress, I would like the code not to return to the original computations it was performing initially. I have tried this implementation, but I was unsuccessful.
function UIFigureKeyPress(app, event)
key = event.Key;
switch key
case 'space' % Slap key
...
return
case 'p' % Place key
...
return
end
end
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!