<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.spheredev.org/index.php?action=history&amp;feed=atom&amp;title=Legacy%3AFunctions%2FInput%2FKeyboard</id>
	<title>Legacy:Functions/Input/Keyboard - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.spheredev.org/index.php?action=history&amp;feed=atom&amp;title=Legacy%3AFunctions%2FInput%2FKeyboard"/>
	<link rel="alternate" type="text/html" href="http://wiki.spheredev.org/index.php?title=Legacy:Functions/Input/Keyboard&amp;action=history"/>
	<updated>2026-11-08T01:02:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>http://wiki.spheredev.org/index.php?title=Legacy:Functions/Input/Keyboard&amp;diff=526&amp;oldid=prev</id>
		<title>Apollolux: created</title>
		<link rel="alternate" type="text/html" href="http://wiki.spheredev.org/index.php?title=Legacy:Functions/Input/Keyboard&amp;diff=526&amp;oldid=prev"/>
		<updated>2013-05-30T23:06:00Z</updated>

		<summary type="html">&lt;p&gt;created&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== Keyboard ===&lt;br /&gt;
==== Key code translation ====&lt;br /&gt;
* [[API:GetKeyString|GetKeyString]](&amp;#039;&amp;#039;key&amp;#039;&amp;#039;, &amp;#039;&amp;#039;shift&amp;#039;&amp;#039;): Converts the given &amp;#039;&amp;#039;key&amp;#039;&amp;#039; into a string, KEY_A will become &amp;quot;a&amp;quot;, etc. If shift is true, returns uppercase/special value of key. Control keys return an empty string.&lt;br /&gt;
&lt;br /&gt;
==== Key status ====&lt;br /&gt;
* [[API:IsAnyKeyPressed|IsAnyKeyPressed]](): Check if any key is being held down.&lt;br /&gt;
* [[API:IsKeyPressed|IsKeyPressed]](&amp;#039;&amp;#039;key&amp;#039;&amp;#039;): Check if the given &amp;#039;&amp;#039;key&amp;#039;&amp;#039; is being held down.&lt;br /&gt;
&lt;br /&gt;
* [[API:GetToggleState|GetToggleState]](&amp;#039;&amp;#039;key&amp;#039;&amp;#039;): Checks if Caps Lock, Num Lock or Scroll Lock are active.&lt;br /&gt;
* Allowed key values:&lt;br /&gt;
** &amp;lt;var&amp;gt;KEY_CAPSLOCK&amp;lt;/var&amp;gt;&lt;br /&gt;
** &amp;lt;var&amp;gt;KEY_NUMLOCK&amp;lt;/var&amp;gt;&lt;br /&gt;
** &amp;lt;var&amp;gt;KEY_SCROLLOCK (Note: only two Ls)&amp;lt;/var&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Key queue ====&lt;br /&gt;
* [[API:AreKeysLeft|AreKeysLeft]](): Check if keys are left in the key buffer.&lt;br /&gt;
* [[API:GetKey|GetKey]](): Get a key from the key buffer, waits for one if there isn&amp;#039;t.&lt;/div&gt;</summary>
		<author><name>Apollolux</name></author>
	</entry>
</feed>