<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 13: glutGetModifiers(): Call anytime</title><link>https://sourceforge.net/p/openglean/feature-requests/13/</link><description>Recent changes to 13: glutGetModifiers(): Call anytime</description><atom:link href="https://sourceforge.net/p/openglean/feature-requests/13/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sat, 30 Jul 2005 01:29:56 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/openglean/feature-requests/13/feed.rss" rel="self" type="application/rss+xml"/><item><title>glutGetModifiers(): Call anytime</title><link>https://sourceforge.net/p/openglean/feature-requests/13/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;For reasons that elude me, freeglut prohibits clients&lt;br /&gt;
from calling glutGetModifiers() outside of an&lt;br /&gt;
input-processing callback.&lt;/p&gt;
&lt;p&gt;This means that if the client wants to track input&lt;br /&gt;
modifiers, it must do so in its own state variable---one&lt;br /&gt;
which conceivably won't be updated as often as the&lt;br /&gt;
library might be able to get updated information from&lt;br /&gt;
the OS.&lt;/p&gt;
&lt;p&gt;Meanwhile, the library goes to some lengths to carefully&lt;br /&gt;
throw away collected information about the state of&lt;br /&gt;
modifier keys.&lt;/p&gt;
&lt;p&gt;The result both is surprising (to  me, as a user) and is&lt;br /&gt;
more code than would be required if we allowed the&lt;br /&gt;
modifer state info to persist.&lt;/p&gt;
&lt;p&gt;I'm connsidering removing the lines that "disable" the&lt;br /&gt;
modifer state, and setting the initial modifier state to&lt;br /&gt;
0 (all modifers assumed not to be pressed).  This would&lt;br /&gt;
mean changing the initialization (and perhaps cleanup)&lt;br /&gt;
code trivially, deleting the lines that  "disable" the&lt;br /&gt;
modifier state, and deletig the lies to check for the&lt;br /&gt;
"disabled" condition.&lt;/p&gt;
&lt;p&gt;Given that OpenGLEAN must collect this info, I see no&lt;br /&gt;
reason to discard it wantonly.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Richard Rauch</dc:creator><pubDate>Sat, 30 Jul 2005 01:29:56 -0000</pubDate><guid>https://sourceforge.netb0bfbf43948cef12343ebb8e770695e75a7226fc</guid></item></channel></rss>