Skip navigation.
Home
The QNX Community Portal

View topic - OpenKODE application on QNX

OpenKODE application on QNX

Discussion about the general applications that run on QNX6

OpenKODE application on QNX

Postby pvazharov » Thu Jul 25, 2013 6:31 pm

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, &param);
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.
pvazharov
New Member
 
Posts: 8
Joined: Wed Jun 19, 2013 9:18 pm

Re: OpenKODE application on QNX

Postby maschoen » Fri Jul 26, 2013 2:20 am

Uh, what other types of events were you expecting? Mouse, Keyboard? I know that for Qt you have to set things up with the keyboard/mouse HID driver to receive events.
maschoen
QNX Master
 
Posts: 2640
Joined: Wed Jun 25, 2003 5:18 pm

Re: OpenKODE application on QNX

Postby pvazharov » Fri Jul 26, 2013 3:36 pm

When I click on the screen the application receives KD_EVENT_WINDOWPROPERTY_CHANGE with pname member zero, too.
I expect to receive some events like - KD_EVENT_INPUT_POINTER. I saw two samples from http://community.qnx.com/sf/frs/do/view ... src_tar_gz and when I tried the code from them the application didn't receive any different event, too. The reason probably is something specific to the device, again.
pvazharov
New Member
 
Posts: 8
Joined: Wed Jun 19, 2013 9:18 pm

Re: OpenKODE application on QNX

Postby koko » Mon Jul 29, 2013 8:46 pm

Make sure your devi-hid driver is started with following arguments:

/usr/photon/bin/devi-hid -Pr kbd mouse
koko
Senior Member
 
Posts: 100
Joined: Wed Aug 20, 2003 1:31 am


Return to QNX6 - Applications

Who is online

Users browsing this forum: No registered users and 2 guests