Azzera filtri
Azzera filtri

ginput and modifier detection

3 visualizzazioni (ultimi 30 giorni)
Marco
Marco il 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

Risposte (0)

Categorie

Scopri di più su Data Exploration in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by