<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.crumbledworld.com/index.php?action=history&amp;feed=atom&amp;title=KeyBind</id>
	<title>KeyBind - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.crumbledworld.com/index.php?action=history&amp;feed=atom&amp;title=KeyBind"/>
	<link rel="alternate" type="text/html" href="https://wiki.crumbledworld.com/index.php?title=KeyBind&amp;action=history"/>
	<updated>2026-04-21T23:08:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.4</generator>
	<entry>
		<id>https://wiki.crumbledworld.com/index.php?title=KeyBind&amp;diff=115&amp;oldid=prev</id>
		<title>Anders: Created page with &quot;{{:KeyBindExampleCode}}  ==Constructor== {| class=&quot;wikitable&quot; !|function !|description |- |KeyBind() | |- |KeyBind(string groupName, string subGroupName, string keyName) | |- |}  ==Functions== {| class=&quot;wikitable&quot; !|return !|function !|description |- |int |getNumKeyBinds() |Get number of different keybinds. |- |string |getKeyBindName(int id) |Retun the text of the key bind. example &quot;Left Ctrl + A&quot; |- |string...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.crumbledworld.com/index.php?title=KeyBind&amp;diff=115&amp;oldid=prev"/>
		<updated>2025-07-05T14:23:11Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{:KeyBindExampleCode}}  ==Constructor== {| class=&amp;quot;wikitable&amp;quot; !|function !|description |- |KeyBind() | |- |KeyBind(string groupName, string subGroupName, string keyName) | |- |}  ==Functions== {| class=&amp;quot;wikitable&amp;quot; !|return !|function !|description |- |int |&lt;a href=&quot;/index.php?title=KeyBind:getNumKeyBinds()&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;KeyBind:getNumKeyBinds() (page does not exist)&quot;&gt;getNumKeyBinds&lt;/a&gt;() |Get number of different keybinds. |- |string |&lt;a href=&quot;/index.php?title=KeyBind:getKeyBindName(int_id)&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;KeyBind:getKeyBindName(int id) (page does not exist)&quot;&gt;getKeyBindName&lt;/a&gt;(int id) |Retun the text of the key bind. example &amp;quot;Left Ctrl + A&amp;quot; |- |string...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{:KeyBindExampleCode}}&lt;br /&gt;
&lt;br /&gt;
==Constructor==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!|function&lt;br /&gt;
!|description&lt;br /&gt;
|-&lt;br /&gt;
|KeyBind()&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|KeyBind(string groupName, string subGroupName, string keyName)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Functions==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!|return&lt;br /&gt;
!|function&lt;br /&gt;
!|description&lt;br /&gt;
|-&lt;br /&gt;
|int&lt;br /&gt;
|[[KeyBind:getNumKeyBinds()|getNumKeyBinds]]()&lt;br /&gt;
|Get number of different keybinds.&lt;br /&gt;
|-&lt;br /&gt;
|string&lt;br /&gt;
|[[KeyBind:getKeyBindName(int id)|getKeyBindName]](int id)&lt;br /&gt;
|Retun the text of the key bind. example &amp;quot;Left Ctrl + A&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|string&lt;br /&gt;
|[[KeyBind:getGroupName()|getGroupName]]()&lt;br /&gt;
|Return group name.&lt;br /&gt;
|-&lt;br /&gt;
|string&lt;br /&gt;
|[[KeyBind:getSubGroupName()|getSubGroupName]]()&lt;br /&gt;
|Return sub group name.&lt;br /&gt;
|-&lt;br /&gt;
|string&lt;br /&gt;
|[[KeyBind:getName()|getName]]()&lt;br /&gt;
|Return name.&lt;br /&gt;
|-&lt;br /&gt;
|bool&lt;br /&gt;
|[[KeyBind:getPressed()|getPressed]]()&lt;br /&gt;
|Returns true if any of the keybinds is preesed.&lt;br /&gt;
|-&lt;br /&gt;
|bool&lt;br /&gt;
|[[KeyBind:getPressed(bool ignoreControlKeys)|getPressed]](bool ignoreControlKeys)&lt;br /&gt;
|Returns true if any of the keybinds is preesed.&lt;br /&gt;
|-&lt;br /&gt;
|bool&lt;br /&gt;
|[[KeyBind:getHeld()|getHeld]]()&lt;br /&gt;
|Returns true if any of the keybinds is held.&lt;br /&gt;
|-&lt;br /&gt;
|bool&lt;br /&gt;
|[[KeyBind:getHeld(bool ignoreControlKeys)|getHeld]](bool ignoreControlKeys)&lt;br /&gt;
|Returns true if any of the keybinds is held.&lt;br /&gt;
|-&lt;br /&gt;
|bool&lt;br /&gt;
|[[KeyBind:bindKey(int id)|bindKey]](int id)&lt;br /&gt;
|Rebind a keybind. return true if a new key combination has been enterd.&lt;br /&gt;
|-&lt;br /&gt;
|string&lt;br /&gt;
|[[KeyBind:setKeyBind(string keyBind)|setKeyBind]](string keyBind)&lt;br /&gt;
|Set key bind from text given by getKeyBindName().&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[KeyBind:setKeyBindKeyboard(int id, Key key)|setKeyBindKeyboard]](int id, [[Key]] key)&lt;br /&gt;
|id key bind id [0,1]&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[KeyBind:setKeyBindKeyboard(int id, Key controlKey1, Key key)|setKeyBindKeyboard]](int id, [[Key]] controlKey1, [[Key]] key)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[KeyBind:setKeyBindKeyboard(int id, Key controlKey1, Key controlKey2, Key key)|setKeyBindKeyboard]](int id, [[Key]] controlKey1, [[Key]] controlKey2, [[Key]] key)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[KeyBind:setKeyBindKeyboard(int id, Key controlKey1, Key controlKey2, Key controlKey3, Key key)|setKeyBindKeyboard]](int id, [[Key]] controlKey1, [[Key]] controlKey2, [[Key]] controlKey3, [[Key]] key)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[KeyBind:setKeyBindMouseint id, MouseKey key)|setKeyBindMouse]](int id, [[MouseKey]] key)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[KeyBind:setKeyBindMouse(int id, Key controlKey1, MouseKey key)|setKeyBindMouse]](int id, [[Key]] controlKey1, [[MouseKey]] key)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[KeyBind:setKeyBindMouse(int id, Key controlKey1, Key controlKey2, MouseKey key)|setKeyBindMouse]](int id, [[Key]] controlKey1, [[Key]] controlKey2, [[MouseKey]] key)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[KeyBind:setKeyBindMouse(int id, Key controlKey1, Key controlKey2, Key controlKey3, MouseKey key)|setKeyBindMouse]](int id, [[Key]] controlKey1, [[Key]] controlKey2, [[Key]] controlKey3, [[MouseKey]] key)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[KeyBind:clearAllKeyBinds()|clearAllKeyBinds]]()&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[KeyBind:clearKeyBind(int id)|clearKeyBind]](int id)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[KeyBind:save()|save]]()&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Anders</name></author>
	</entry>
</feed>