Question

I know there are only a few CAA Programmers in the world but I try it anyway...

I can't get keyboard events to work. I found this code which looks reasonable but the Notification doesn't fire.

AddAnalyseNotificationCB(CATFrmLayout::GetCurrentLayout()->GetCurrentWindow()->GetViewer(),
                        CATKeyboardEvent::ClassName(),
                        (CATCommandMethod)&PROTrvTreeView::OnKeyboardEvent, NULL);

void PROTrvTreeView::OnKeyboardEvent(CATCommand * ipCmd, CATNotification * ipEvt, CATCommandClientData iobjData) {
    cout<< "KeyboardEvent" <<endl;
}

Anyone any idea?

Was it helpful?

Solution

There is a much denser group of developers for CAA at:

http://www.3ds.com/alliances/c-java-developers/forum/

The same question came up, with several people mentioning that this API was unauthorized, and therefore you can't rely on it, even if it works.

The other samples there are essentially the same code as yours, but the only one that purports to work doesn't use CATKeyboardEvent::ClassName, but instead uses "CATKeybdEvent". Might be worth a try.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top