I checked linux, and there the OnKeyXX also works correct. So this seems to be a win32 specific thing.
Darius On Mar 30, 2011, at 3:52 PM, Darius Blaszyk wrote: > Just tried on the mac mini. The demo runs up to 1000FPS which is the limit of > what I can measure. How nice to have hardware acceleration.... > > One more thing tho, there seem to be a some bugs with key handling. > > 1) OnKeyPress, OnKeyDown and OnKeyUp are not fired for TOpenGLControl on > win32 but are fired on mac > 2) OnKeyDown and OnKeyUp for TForm always give an uppercase value for the > key, only OnKeyPress gives the correct character (lower or uppercase) for > win32. On Mac however I got the right value for the key that fired the method > each time. > > Are these known issues? I googled a bit and looked on the bug tracker but > couldn't find anything related. Just try the demo I sent to see if this can > be confirmed. On win32 I used a lazarus snapshot (2.4.3) no more than a > couple of days old. > > Regards, Darius > > > On Mar 30, 2011, at 1:45 PM, <[email protected]> > <[email protected]> wrote: > >> >> Hi, >> >> Here's a nice demo which I reworked to FPC/Lazarus of an IMGUI >> implementation. An IMGUI is a different approach to implementing a widget >> toolkit and may be of interest in some applications. Additionally I included >> a port of a vector font library for OpenGL. >> The demo is very fast (>60FPS on a low end laptop). For now this was only >> tested on win32 but I'm confident that it will run on any platform without >> issues as it's native pascal all over. I would welcome it if it could be >> included as an example for the OpenGLContext component. >> >> Regards, Darius >> <imgui.zip>-- >> _______________________________________________ >> Lazarus mailing list >> [email protected] >> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > > -- > _______________________________________________ > Lazarus mailing list > [email protected] > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
-- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
