Hi guys,
I’m developing application for QNX which uses for ui OpenGL ES with OpenKODE. OpenKODE was the only windowing system that I was able to find for this QNX (Harman device).
The application shows the UI rendered with OpenGL ES, but the problem is that my event loop doesn’t receive any event type different from KD_EVENT_WINDOWPROPERTY_CHANGE with pname member always zero.
This is the code for my event loop.
for(;
{
const KDEvent* evt = kdWaitEvent(0);
if (evt)
{
std::cout << "NEW EVENT " << evt->type << std::endl;
switch(evt->type)
{
case KD_EVENT_WINDOWPROPERTY_CHANGE:
{
std::cout << "NEW EVENT KD_EVENT_WINDOWPROPERTY_CHANGE. pname " << evt->data.windowproperty.pname << std::endl;
KDint32 param = -1;
KDint res = kdGetWindowPropertyiv(m_pWindow, evt->data.windowproperty.pname, ¶m);
std::cout << "res " << res << ". param " << param << ". err " << kdGetError() << std::endl;
}
break;
case KD_EVENT_WINDOW_CLOSE:
break;
default:
kdDefaultEvent(evt);
}
}
Draw();
}
and this is the code related to creation of my KD window and it seems to works correctly
m_pWindow = kdCreateWindow(m_eglDisplay, config, KD_NULL);
if(!m_pWindow)
{
return false;
}
EGLNativeWindowType wnd;
if(kdRealizeWindow(m_pWindow, &wnd) != 0)
{
return false;
}
Any ideas are appreciated. Thanks in advance.