I want my host app to send Mouse / Keyboard events that it has captured to the gecko window. I'm assuming it's something like this (for mouse) :
nsCOMPtr<nsIWidget> pWidget; m_BaseWindow->GetMainWidget(getter_AddRefs(pWidget)); nsMouseEvent event(false,NS_MOUSE_LEFT_CLICK,pWidget,nsMouseEvent::eReal); event.clickCount = 1; nsEventStatus status; pWidget->DispatchEvent(&event,status); Is this the right idea??? Also how do you pass in the mouse coords. Is there a better way I should be doing this? Thanks --Richard _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
