<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../../docs.xsl"?>

<docs type="symbol" project="SIEGE" version="0.8.2" rpath="../..">
	<file root="siege/core" name="window.DONE.h">
		<group key="Window" name="Window">
			<symbol id="20" kind="function" internal="false" cname="sgWindowHandleEvents">
				<index>
					<entry key="WindowHandleEvents">sgWindowHandleEvents</entry>
				</index>
				<section name="Name">
					<names>
						<name>sgWindowHandleEvents</name>
						<descr>handle the OS events (such as mouse and keyboard)</descr>
					</names>
				</section>
				<section name="Synopsis">
					<code-block lang="C">void <ref local="true" path="." file="window.DONE" group="Window" name="sgWindowHandleEvents" id="20">sgWindowHandleEvents</ref>(void);</code-block>
				</section>
				<section name="Description">
					<p>
						This function handles events in the engine, such as mouse, keyboard and joystick input. It should be called on a regular basis even if the events are ignored -- otherwise, the OS may complain that the program is not responding.
					</p>
					<p>
						Please note that only OS events are handled; ingame events such as ticks or draw events are handled in <ref local="false" path="." file="core.DONE" group="Core" name="sgLoop" id="11">sgLoop</ref>() (which also implicitly calls this function). Thus, this function does not need to be called explicitly if <ref local="false" path="." file="core.DONE" group="Core" name="sgLoop" id="11">sgLoop</ref>() is being called regularly. The same applies if <ref local="false" path="." file="core.DONE" group="Core" name="sgRun" id="10">sgRun</ref>() is used, which calls <ref local="false" path="." file="core.DONE" group="Core" name="sgLoop" id="11">sgLoop</ref>() internally.
					</p>
				</section>
				<section name="See Also">
					<sees>
						<see><ref local="false" path="." file="window.DONE" group="Window" name="sgWindowSwapBuffers" id="21">sgWindowSwapBuffers</ref></see>
					</sees>
					<sees>
						<see><ref local="false" path="." file="core.DONE" group="Core" name="sgRun" id="10">sgRun</ref></see>
						<see><ref local="false" path="." file="core.DONE" group="Core" name="sgLoop" id="11">sgLoop</ref></see>
					</sees>
				</section>
				<section name="TODO">
						<ul>
							<li>
								<p>
									Refactor the function
								</p>
							</li>
							<li>
								<p>
									Modify mouse wheel events
								</p>
							</li>
							<li>
								<p>
									Add handling of joystick ball and POV-hat motion
								</p>
							</li>
						</ul>
				</section>
			</symbol>
		</group>
	</file>
</docs>
