
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8"/><!-- using block title in layout.dt--><!-- using block ddox.defs in ddox.layout.dt--><!-- using block ddox.title in ddox.layout.dt-->
		<title>Class InputManager</title>
		<link rel="stylesheet" type="text/css" href="../../styles/ddox.css"/>
		<link rel="stylesheet" href="../../prettify/prettify.css" type="text/css"/>
		<script type="text/javascript" src="../../scripts/jquery.js">/**/</script>
		<script type="text/javascript" src="../../prettify/prettify.js">/**/</script>
		<script type="text/javascript" src="../../scripts/ddox.js">/**/</script>
	</head>
	<body onload="prettyPrint(); setupDdox();">
		<nav id="main-nav"><!-- using block navigation in layout.dt-->
						<ul class="tree-view">
							<li class="collapsed tree-view">
								<a href="#" class="package">components</a>
						<ul class="tree-view">
							<li>
								<a href="../../components/animation.html" class=" module">animation</a>
							</li>
							<li>
								<a href="../../components/assets.html" class=" module">assets</a>
							</li>
							<li>
								<a href="../../components/camera.html" class=" module">camera</a>
							</li>
							<li>
								<a href="../../components/icomponent.html" class=" module">icomponent</a>
							</li>
							<li>
								<a href="../../components/lights.html" class=" module">lights</a>
							</li>
							<li>
								<a href="../../components/material.html" class=" module">material</a>
							</li>
							<li>
								<a href="../../components/mesh.html" class=" module">mesh</a>
							</li>
							<li>
								<a href="../../components/userinterface.html" class=" module">userinterface</a>
							</li>
						</ul>
							</li>
							<li class="collapsed tree-view">
								<a href="#" class="package">core</a>
						<ul class="tree-view">
							<li>
								<a href="../../core/dgame.html" class=" module">dgame</a>
							</li>
							<li>
								<a href="../../core/gameobject.html" class=" module">gameobject</a>
							</li>
							<li>
								<a href="../../core/prefabs.html" class=" module">prefabs</a>
							</li>
							<li>
								<a href="../../core/properties.html" class=" module">properties</a>
							</li>
							<li>
								<a href="../../core/reflection.html" class=" module">reflection</a>
							</li>
							<li>
								<a href="../../core/scene.html" class=" module">scene</a>
							</li>
						</ul>
							</li>
							<li class="collapsed tree-view">
								<a href="#" class="package">graphics</a>
						<ul class="tree-view">
							<li class="collapsed tree-view">
								<a href="#" class="package">adapters</a>
						<ul class="tree-view">
							<li>
								<a href="../../graphics/adapters/adapter.html" class=" module">adapter</a>
							</li>
							<li>
								<a href="../../graphics/adapters/linux.html" class=" module">linux</a>
							</li>
							<li>
								<a href="../../graphics/adapters/mac.html" class=" module">mac</a>
							</li>
							<li>
								<a href="../../graphics/adapters/win32.html" class=" module">win32</a>
							</li>
						</ul>
							</li>
							<li class="collapsed tree-view">
								<a href="#" class="package">shaders</a>
						<ul class="tree-view">
							<li class="collapsed tree-view">
								<a href="#" class="package">glsl</a>
						<ul class="tree-view">
							<li>
								<a href="../../graphics/shaders/glsl/ambientlight.html" class=" module">ambientlight</a>
							</li>
							<li>
								<a href="../../graphics/shaders/glsl/animatedgeometry.html" class=" module">animatedgeometry</a>
							</li>
							<li>
								<a href="../../graphics/shaders/glsl/directionallight.html" class=" module">directionallight</a>
							</li>
							<li>
								<a href="../../graphics/shaders/glsl/geometry.html" class=" module">geometry</a>
							</li>
							<li>
								<a href="../../graphics/shaders/glsl/pointlight.html" class=" module">pointlight</a>
							</li>
							<li>
								<a href="../../graphics/shaders/glsl/userinterface.html" class=" module">userinterface</a>
							</li>
						</ul>
							</li>
							<li>
								<a href="../../graphics/shaders/glsl.html" class=" module">glsl</a>
							</li>
							<li>
								<a href="../../graphics/shaders/shaders.html" class=" module">shaders</a>
							</li>
						</ul>
							</li>
							<li>
								<a href="../../graphics/adapters.html" class=" module">adapters</a>
							</li>
							<li>
								<a href="../../graphics/graphics.html" class=" module">graphics</a>
							</li>
							<li>
								<a href="../../graphics/shaders.html" class=" module">shaders</a>
							</li>
						</ul>
							</li>
							<li class=" tree-view">
								<a href="#" class="package">utility</a>
						<ul class="tree-view">
							<li>
								<a href="../../utility/awesomium.html" class=" module">awesomium</a>
							</li>
							<li>
								<a href="../../utility/concurrency.html" class=" module">concurrency</a>
							</li>
							<li>
								<a href="../../utility/config.html" class=" module">config</a>
							</li>
							<li>
								<a href="../../utility/filepath.html" class=" module">filepath</a>
							</li>
							<li>
								<a href="../../utility/input.html" class="selected module">input</a>
							</li>
							<li>
								<a href="../../utility/output.html" class=" module">output</a>
							</li>
							<li>
								<a href="../../utility/string.html" class=" module">string</a>
							</li>
							<li>
								<a href="../../utility/tasks.html" class=" module">tasks</a>
							</li>
							<li>
								<a href="../../utility/time.html" class=" module">time</a>
							</li>
						</ul>
							</li>
							<li>
								<a href="../../components.html" class=" module">components</a>
							</li>
							<li>
								<a href="../../core.html" class=" module">core</a>
							</li>
							<li>
								<a href="../../graphics.html" class=" module">graphics</a>
							</li>
							<li>
								<a href="../../utility.html" class=" module">utility</a>
							</li>
						</ul>
				<noscript>
					<p style="color: red">The search functionality needs JavaScript enabled</p>
				</noscript>
				<div id="symbolSearchPane" style="display: none">
					<p>
						<input id="symbolSearch" type="text" placeholder="Search for symbols" onchange="performSymbolSearch(24);" onkeypress="this.onchange();" onpaste="this.onchange();" oninput="this.onchange();"/>
					</p>
	<ul id="symbolSearchResults" style="display: none"></ul>
	<script type="application/javascript" src="../../symbols.js"></script>
	<script type="application/javascript">
		//<![CDATA[
		var symbolSearchRootDir = "../../";		$('#symbolSearchPane').show();
		//]]>
	</script>
				</div>
		</nav>
		<div id="main-contents">
			<h1>Class InputManager</h1><!-- using block body in layout.dt--><!-- using block ddox.description in ddox.layout.dt-->
			<p></p>

			<section>
				<h2>Inherits from</h2>
				<ul>
					<li>
						<code class="prettyprint lang-d"><code class="prettyprint lang-d">Object</code></code>
 (base class)
					</li>
				</ul>
			</section><!-- using block ddox.sections in ddox.layout.dt-->
<!-- using block ddox.members in ddox.layout.dt-->
			<section>
				<h2>Properties</h2>
				<table>
					<col class="caption"/>
					<tr>
						<th>Name</th>
						<th>Type</th>
						<th>Description</th>
					</tr>
					<tr>
						<td>
							<a href="../../utility/input/InputManager.mouseObject.html" class="public property"><code>mouseObject</code></a>
							<span class="tableEntryAnnotation">[get]</span>
						</td>
						<td><code class="prettyprint lang-d">shared(<a href="../../core/gameobject/GameObject.html">GameObject</a>)</code></td>
						<td> Gets the world position of the cursor in the active scene.
</td>
					</tr>
					<tr>
						<td>
							<a href="../../utility/input/InputManager.mousePos.html" class="public property"><code>mousePos</code></a>
							<span class="tableEntryAnnotation">[get]</span>
						</td>
						<td><code class="prettyprint lang-d">shared(gl3n.linalg.Vector!(float,2))</code></td>
						<td> Gets the position of the cursor.
</td>
					</tr>
					<tr>
						<td>
							<a href="../../utility/input/InputManager.mousePosView.html" class="public property"><code>mousePosView</code></a>
							<span class="tableEntryAnnotation">[get]</span>
						</td>
						<td><code class="prettyprint lang-d">shared(gl3n.linalg.Vector!(float,3))</code></td>
						<td> Gets the world position of the cursor in the active scene.
</td>
					</tr>
					<tr>
						<td>
							<a href="../../utility/input/InputManager.mousePosWorld.html" class="public property"><code>mousePosWorld</code></a>
							<span class="tableEntryAnnotation">[get]</span>
						</td>
						<td><code class="prettyprint lang-d">shared(gl3n.linalg.Vector!(float,3))</code></td>
						<td> Gets the world position of the cursor in the active scene.
</td>
					</tr>
				</table>
			</section>
			<section>
				<h2>Methods</h2>
				<table>
					<col class="caption"/>
					<tr>
						<th>Name</th>
						<th>Description</th>
					</tr>
					<tr>
						<td>
							<a href="../../utility/input/InputManager.addKeyDownEvent.html" class="public">
								<code>addKeyDownEvent</code>
							</a>
						</td>
						<td> Add a key event only when the key is down.
</td>
					</tr>
					<tr>
						<td>
							<a href="../../utility/input/InputManager.addKeyEvent.html" class="public">
								<code>addKeyEvent</code>
							</a>
						</td>
						<td> Add an event to be fired when the given key changes.
</td>
					</tr>
					<tr>
						<td>
							<a href="../../utility/input/InputManager.addKeyEvent.html" class="public">
								<code>addKeyEvent</code>
							</a>
						</td>
						<td> Add an event to be fired when the given key changes.
</td>
					</tr>
					<tr>
						<td>
							<a href="../../utility/input/InputManager.addKeyUpEvent.html" class="public">
								<code>addKeyUpEvent</code>
							</a>
						</td>
						<td> Add a key event only when the key is up.
</td>
					</tr>
					<tr>
						<td>
							<a href="../../utility/input/InputManager.getState.html" class="public">
								<code>getState</code>
							</a>
						</td>
						<td> Gets the state of a string-bound <a href="../../utility/input/InputManager.getState.html#input"><code class="prettyprint lang-d">input</code></a>.
</td>
					</tr>
					<tr>
						<td>
							<a href="../../utility/input/InputManager.initialize.html" class="public">
								<code>initialize</code>
							</a>
						</td>
						<td> Processes Config/Input.yml and pulls input string bindings.
</td>
					</tr>
					<tr>
						<td>
							<a href="../../utility/input/InputManager.isKeyDown.html" class="public">
								<code>isKeyDown</code>
							</a>
						</td>
						<td> Check if a given key is down.
</td>
					</tr>
					<tr>
						<td>
							<a href="../../utility/input/InputManager.isKeyUp.html" class="public">
								<code>isKeyUp</code>
							</a>
						</td>
						<td> Check if a given key is up.
</td>
					</tr>
					<tr>
						<td>
							<a href="../../utility/input/InputManager.setKeyState.html" class="public">
								<code>setKeyState</code>
							</a>
						</td>
						<td> Sets the state of the key to be assigned at the beginning of next frame.
 Should only be called from a window controller.
</td>
					</tr>
					<tr>
						<td>
							<a href="../../utility/input/InputManager.update.html" class="public">
								<code>update</code>
							</a>
						</td>
						<td> Updates the key states, and calls all key events.
</td>
					</tr>
				</table>
			</section>
			<section>
				<h2>Aliases</h2>
				<table>
					<col class="caption"/>
					<tr>
						<th>Name</th>
						<th>Description</th>
					</tr>
					<tr>
						<td>
							<a href="../../utility/input/InputManager.KeyEvent.html" class="public">
								<code>KeyEvent</code>
							</a>
						</td>
						<td> Function called when key event triggers.
</td>
					</tr>
					<tr>
						<td>
							<a href="../../utility/input/InputManager.KeyStateEvent.html" class="public">
								<code>KeyStateEvent</code>
							</a>
						</td>
						<td> Function called when key event triggers.
</td>
					</tr>
				</table>
			</section>
			<section>
				<h2>Authors</h2><!-- using block ddox.authors in ddox.layout.dt-->

			</section>
			<section>
				<h2>Copyright</h2><!-- using block ddox.copyright in ddox.layout.dt-->

			</section>
			<section>
				<h2>License</h2><!-- using block ddox.license in ddox.layout.dt-->

			</section>
		</div>
	</body>
</html>