On 02.04.2011 04:46, Ben Stott wrote:

> [...] - I forgot that the user could
> release another key before releasing shift!
> This is fixed, and I've added in the vk == VK_SHIFT test too.

Fine.

> It seems that Win32 doesn't send autorepeat events for shift keys - only for
> 'actual' keys. This screws with the shift detection, but this should hopefully
> be fixed.

Well, it DOES send autorepeat events for the shift key for me - tested
on WinXP and Win7.

> It also seems that it doesn't bother sending a WM_KEYUP message if the user
> holds left *and* right shift, and then releases one of them. I suppose this
> makes sense given that Windows deems left/right shift to be the same key.

I see. Yes, this looks like a real show stopper. :-(

> I have an idea on how to fix this, [...]

I have no idea other than polling, or sending an additional FL_KEYUP event
when the next event happens, but this would be too late. I'm curious how
you want to solve this...

Albrecht
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to