On Wed, 2009-11-25 at 20:14 +0100, Sven Neumann wrote:
> On Wed, 2009-11-25 at 20:12 +0100, Sven Neumann wrote:
> > IDirectFBInputDevice caches the key states (up/down) by keeping track
> > of press and release events. This doesn't take into account that a key
> > may be pressed at the time the device is opened.
> > 
> > This change introduces code to the linux_input driver that queries
> > the keystates when the event thread is started and synthesizes key
> > press events for all pressed keys.
> 
> I am still testing this patch, but I would like to get some feedback if
> this is the right approach to the problem. Your comments are welcome.

It appears necessary to also send key release events. Otherwise the
cached key states may still become out of sync when a key is released
while the device is suspended. A patch that does this will follow.
Again, your feedback would be very welcome.


Sven


_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to