Quoting Vincenzo Ampolo:
> if(keybuffer.HasEvent() == DFB_OK)
> cout << "I can't read this line " << endl;
In ++DFB you don't get a DFBResult, but a bool that depends on it:
bool IDirectFBEventBuffer::HasEvent ()
{
DFBResult ret;
ret = iface->HasEvent (iface);
if (ret != DFB_OK && ret != DFB_BUFFEREMPTY)
throw new DFBException (__PRETTY_FUNCTION__, ret);
return (ret == DFB_OK);
}
So just remove the " == DFB_OK" in both cases :)
--
Best regards,
Denis Oliver Kropp
.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/ |
"------------------------------------------"
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev