MGetKey

Return the keyboard/mouse button code over figure.
484 téléchargements
Mise à jour 10 nov. 2009

Afficher la licence

ch = MGetKey(hFig) waits for keyboard/mouse button event over the specified figure handle (hFig) and returns the ascii code of the keyboard key or -1 if a mouse button was pressed (ch). An empty value is returned if an error occurs.

Unlike the (nice) getkey.m script, MGetKey does not need an auxiliary window.

Citation pour cette source

Marcello Ferro (2026). MGetKey (https://fr.mathworks.com/matlabcentral/fileexchange/25792-mgetkey), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2006a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Argument Definitions dans Help Center et MATLAB Answers
Version Publié le Notes de version
1.0.0.0