Hi ,Am current writing a command plugin utilizing MAnimMessage::addAnimCurveEditedCallback ()
the callback is invoked whenever a animcurve is made or edited (which is I want) , but what I don't like is, the callback keeps being invoked even when you are hold and dragging to edit animcurves in grapheditor. what I want is only invoke the callback after the mouse is released,cos the callback may be heavy sometimes.
there seems no provided ways from MAnimMessage class.
so I think maybe in callback function, I will set some if statements , if the mouse is still holding then return and do nothing.
problem is how can I know whether the mouse is currently released or not?
anyone got a suggestion? Thanks a lot 
file:///D:/Program%20Files/Autodesk/Maya2008/docs/Maya2008/en_US/API/MAnimMessage.html#DOC.10.7.1