ginput and modifier detection

1 view (last 30 days)
Marco
Marco on 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

Answers (0)

Categories

Find more on Visual Exploration in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!