We have been successfully using a touch panel via DirectFB-0.9.20 -  Now using DirectFB-0.9.22 we are having problems receiving input events.   We had been utilizing CreateEventBuffer on the mouse input device and then calling GetXY whenever we see an appropriate event.   Now this no longer appears to work.

According to a long search of the ChangeLog:

        API change
        ----------
        
        IDirectFB::CreateEventBuffer() no longer attaches input devices and doesn't
        take input capabilities.
        
        IDirectFB::CreateInputEventBuffer() implements the old behaviour with an
        additional argument "global". If global is DFB_FALSE events will only be
        delivered if this instance of IDirectFB has a focused primary (either running
        fullscreen or running in windowed mode with the window being focused).

This matches our observations that CreateInputEventBuffer works, except for the fact that a call to the GetXY on our input device no longer seems to return reasonable values (always returning 0,0).   Should it be returning a correct value, or is there now an alternative method for doing what we need to?  (e.g. save the axis values ourselves)   The input device appears to have code to "react" to the axis events but perhaps our input device isn't receiving them?

Thank you,
Gavin Stark


_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to