フィルターのクリア

ginput and modifier detection

3 ビュー (過去 30 日間)
Marco
Marco 2012 年 3 月 12 日
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

回答 (0 件)

カテゴリ

Help Center および File ExchangeData Exploration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by