On 21/09/2016 at 07:04, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R17 demo
Platform: Windows ;
Language(s) : C++ ;
---------
Hi,
let's say I have class derived from ToolData. I'd like to implement some functionality when user is just hovering with mouse cursor over my objects. Is there any way how to do it?
I tried to implement it in MouseInput function, but according to documentation it is called only if user clicks into scene and so it doesn't receive message BFM_INPUT_MOUSEMOVE.
Structure of my MouseInput function is simple - looks like this:
Bool MyToolPlugin::MouseInput(BaseDocument* doc, BaseContainer& data, BaseDraw* bd, EditorWindow* win, const BaseContainer& msg)
{
switch(msg.GetInt32(BFM_INPUT_CHANNEL)){
case BFM_INPUT_MOUSELEFT:
{
}
break;
case BFM_INPUT_MOUSERIGHT:
{
}
break;
case BFM_INPUT_MOUSEMOVE:
{
// this is never called
}
break;
default: return false;
}
return true;
}
Tool plugin is registered without any PLUGINFLAG (0).
Thank you.