Effacer les filtres
Effacer les filtres

ginput and modifier detection

3 vues (au cours des 30 derniers jours)
Marco
Marco le 12 Mar 2012
Hi!
i would like to use ginput to select a position from an axis and then, according to the modifier used (CTRL or SHIFT) perform different actions.
i already assigned different actions depending on the mouse button pressed (1-2-3).
using this sintax:
[x, y, button]=ginput(1)
the problem i face is that the value of the button variable resulting from a left click plus a modifier is the same as a right-click (CTRL+l-click) or middle-click (SHIFT+l-click).
Is there a way to detect which modifier was pressed?
Thank you

Réponses (0)

Catégories

En savoir plus sur Data Exploration dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by