<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I checked linux, and there the OnKeyXX also works correct. So this seems to be a win32 specific thing.<div><br></div><div>Darius</div><div><br></div><div><br><div><div>On Mar 30, 2011, at 3:52 PM, Darius Blaszyk wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>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.... </div><div><br></div><div>One more thing tho, there seem to be a some bugs with key handling. </div><div><br></div><div>1) OnKeyPress, OnKeyDown and OnKeyUp are not fired for TOpenGLControl on win32 but are fired on mac</div><div>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.</div><div><br></div><div>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.</div><div><br></div><div>Regards, Darius</div><div><br></div><br><div><div>On Mar 30, 2011, at 1:45 PM, <<a href="mailto:dhkblaszyk@zeelandnet.nl">dhkblaszyk@zeelandnet.nl</a>> <<a href="mailto:dhkblaszyk@zeelandnet.nl">dhkblaszyk@zeelandnet.nl</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<div style="font-family: arial,helvetica,sans-serif;font-size: 13px;">
<br>
<div>Hi,<br><br>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.<br>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.<br><br>Regards, Darius</div>
</div>
<span><imgui.zip></span>--<br>_______________________________________________<br>Lazarus mailing list<br><a href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a><br><a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br></blockquote></div><br></div>--<br>_______________________________________________<br>Lazarus mailing list<br><a href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a><br>http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus<br></blockquote></div><br></div></body></html>