How do I prevent resuming after a callback function interruption?
Afficher commentaires plus anciens
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
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!