MGetKey

Return the keyboard/mouse button code over figure.

Vous suivez désormais cette soumission

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 .

Catégories

En savoir plus sur Argument Definitions dans Help Center et MATLAB Answers

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version Action
1.0.0.0