Hello,
I have a program that is using a mouse right now, but will use a
touch screen as soon as it arrives. Setting up the event buffer goes as
so.
dfb->CreateInputEventBuffer(dfb,DICAPS_ALL,DFB_FALSE,&buffer);
The event loop is:
while(!quit)
{
buffer->WaitForEvent(buffer);
while ( buffer->GetEvent(buffer, DFB_EVENT(&event)) == DFB_OK)
{
if(event.type == DIET_BUTTONPRESS)
printf("button pressed");
...
}
}
Originally I had an input device for keyboard and mouse. When the event
was triggered I would call mouse->GetXY(mouse,&x,&y);
Well now I don't have a mouse object to call that on. How do I go about
getting that from the event?
--
Nathanael D. Noblet
Gnat Solutions
http://www.gnat.ca/
T 250.385.4613
C 250.893.4613
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users