<li><ahref="../../../../Microsoft/Xna/Framework/Input/Keyboard.html"title="class in Microsoft.Xna.Framework.Input"><spanclass="strong">Prev Class</span></a></li>
<li><ahref="../../../../Microsoft/Xna/Framework/Input/Keys.html"title="enum in Microsoft.Xna.Framework.Input"><spanclass="strong">Next Class</span></a></li>
<dd><ahref="../../../../System/IEquatable.html"title="interface in System">IEquatable</a><<ahref="../../../../Microsoft/Xna/Framework/Input/KeyboardState.html"title="class in Microsoft.Xna.Framework.Input">KeyboardState</a>></dd>
</dl>
<hr>
<br>
<pre>public final class <spanclass="strong">KeyboardState</span>
extends <ahref="../../../../System/ValueType.html"title="class in System">ValueType</a>
implements <ahref="../../../../System/IEquatable.html"title="interface in System">IEquatable</a><<ahref="../../../../Microsoft/Xna/Framework/Input/KeyboardState.html"title="class in Microsoft.Xna.Framework.Input">KeyboardState</a>></pre>
<divclass="block">Represents a state of keystrokes recorded by a keyboard input device.</div>
<thclass="colOne"scope="col">Constructor and Description</th>
</tr>
<trclass="altColor">
<tdclass="colOne"><code><strong><ahref="../../../../Microsoft/Xna/Framework/Input/KeyboardState.html#KeyboardState(Microsoft.Xna.Framework.Input.Keys...)">KeyboardState</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Input/Keys.html"title="enum in Microsoft.Xna.Framework.Input">Keys</a>... keys)</code>
<divclass="block">Initializes a new instance of the KeyboardState class.</div>
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Method and Description</th>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>boolean</code></td>
<tdclass="colLast"><code><strong><ahref="../../../../Microsoft/Xna/Framework/Input/KeyboardState.html#Equals(Microsoft.Xna.Framework.Input.KeyboardState)">Equals</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Input/KeyboardState.html"title="class in Microsoft.Xna.Framework.Input">KeyboardState</a> other)</code>
<divclass="block">Indicates whether the current object is equal to another object of the same type.</div>
<divclass="block">Returns a value that indicates whether the current instance is equal to a specified object.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code><ahref="../../../../Microsoft/Xna/Framework/Input/KeyState.html"title="enum in Microsoft.Xna.Framework.Input">KeyState</a></code></td>
<tdclass="colLast"><code><strong><ahref="../../../../Microsoft/Xna/Framework/Input/KeyboardState.html#get(Microsoft.Xna.Framework.Input.Keys)">get</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Input/Keys.html"title="enum in Microsoft.Xna.Framework.Input">Keys</a> key)</code>
<divclass="block">Returns the state of a particular key.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code><ahref="../../../../Microsoft/Xna/Framework/Input/Keys.html"title="enum in Microsoft.Xna.Framework.Input">Keys</a>[]</code></td>
<divclass="block">Gets the hash code for this instance.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>boolean</code></td>
<tdclass="colLast"><code><strong><ahref="../../../../Microsoft/Xna/Framework/Input/KeyboardState.html#IsKeyDown(Microsoft.Xna.Framework.Input.Keys)">IsKeyDown</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Input/Keys.html"title="enum in Microsoft.Xna.Framework.Input">Keys</a> key)</code>
<divclass="block">Returns whether a specified key is currently being pressed.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>boolean</code></td>
<tdclass="colLast"><code><strong><ahref="../../../../Microsoft/Xna/Framework/Input/KeyboardState.html#IsKeyUp(Microsoft.Xna.Framework.Input.Keys)">IsKeyUp</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Input/Keys.html"title="enum in Microsoft.Xna.Framework.Input">Keys</a> key)</code>
<divclass="block">Returns whether a specified key is currently not pressed.</div>
<pre>public KeyboardState(<ahref="../../../../Microsoft/Xna/Framework/Input/Keys.html"title="enum in Microsoft.Xna.Framework.Input">Keys</a>... keys)</pre>
<divclass="block">Initializes a new instance of the KeyboardState class.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>keys</code> - Array or parameter list of Keys to initialize as pressed.</dd></dl>
<pre>public <ahref="../../../../Microsoft/Xna/Framework/Input/KeyState.html"title="enum in Microsoft.Xna.Framework.Input">KeyState</a> get(<ahref="../../../../Microsoft/Xna/Framework/Input/Keys.html"title="enum in Microsoft.Xna.Framework.Input">Keys</a> key)</pre>
<divclass="block">Returns the state of a particular key.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>key</code> - Enumerated value representing the key to query.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>The state of the key specified by key.</dd></dl>
<pre>public boolean Equals(<ahref="../../../../Microsoft/Xna/Framework/Input/KeyboardState.html"title="class in Microsoft.Xna.Framework.Input">KeyboardState</a> other)</pre>
<divclass="block"><strong>Description copied from interface: <code><ahref="../../../../System/IEquatable.html#Equals(T)">IEquatable</a></code></strong></div>
<divclass="block">Indicates whether the current object is equal to another object of the same type.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><ahref="../../../../System/IEquatable.html#Equals(T)">Equals</a></code> in interface <code><ahref="../../../../System/IEquatable.html"title="interface in System">IEquatable</a><<ahref="../../../../Microsoft/Xna/Framework/Input/KeyboardState.html"title="class in Microsoft.Xna.Framework.Input">KeyboardState</a>></code></dd>
<dt><spanclass="strong">Parameters:</span></dt><dd><code>other</code> - An object to compare with this object.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>true if the current object is equal to the other parameter; otherwise, false.</dd></dl>
</li>
</ul>
<aname="hashCode()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>hashCode</h4>
<pre>public int hashCode()</pre>
<divclass="block">Gets the hash code for this instance.</div>
<dt><spanclass="strong">Returns:</span></dt><dd>Hash code for this object.</dd></dl>
</li>
</ul>
<aname="GetPressedKeys()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>GetPressedKeys</h4>
<pre>public <ahref="../../../../Microsoft/Xna/Framework/Input/Keys.html"title="enum in Microsoft.Xna.Framework.Input">Keys</a>[] GetPressedKeys()</pre>
<divclass="block">Gets an array of values that correspond to the keyboard keys that are currently being pressed.</div>
<dl><dt><spanclass="strong">Returns:</span></dt><dd>The keys that are currently pressed.</dd></dl>
<pre>public boolean IsKeyDown(<ahref="../../../../Microsoft/Xna/Framework/Input/Keys.html"title="enum in Microsoft.Xna.Framework.Input">Keys</a> key)</pre>
<divclass="block">Returns whether a specified key is currently being pressed.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>key</code> - Enumerated value that specifies the key to query.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>true if the key specified by key is being held down; false otherwise.</dd></dl>
<pre>public boolean IsKeyUp(<ahref="../../../../Microsoft/Xna/Framework/Input/Keys.html"title="enum in Microsoft.Xna.Framework.Input">Keys</a> key)</pre>
<divclass="block">Returns whether a specified key is currently not pressed.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>key</code> - Enumerated value that specifies the key to query.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>true if the key specified by key is not pressed; false otherwise.</dd></dl>
<li><ahref="../../../../Microsoft/Xna/Framework/Input/Keyboard.html"title="class in Microsoft.Xna.Framework.Input"><spanclass="strong">Prev Class</span></a></li>
<li><ahref="../../../../Microsoft/Xna/Framework/Input/Keys.html"title="enum in Microsoft.Xna.Framework.Input"><spanclass="strong">Next Class</span></a></li>