<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.eduke32.com/w/index.php?action=history&amp;feed=atom&amp;title=M32%3Aifholdkey</id>
	<title>M32:ifholdkey - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.eduke32.com/w/index.php?action=history&amp;feed=atom&amp;title=M32%3Aifholdkey"/>
	<link rel="alternate" type="text/html" href="https://wiki.eduke32.com/w/index.php?title=M32:ifholdkey&amp;action=history"/>
	<updated>2026-05-19T22:55:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.47.0-alpha</generator>
	<entry>
		<id>https://wiki.eduke32.com/w/index.php?title=M32:ifholdkey&amp;diff=14739&amp;oldid=prev</id>
		<title>Doom64hunter at 20:26, 8 May 2022</title>
		<link rel="alternate" type="text/html" href="https://wiki.eduke32.com/w/index.php?title=M32:ifholdkey&amp;diff=14739&amp;oldid=prev"/>
		<updated>2022-05-08T20:26:45Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:26, 8 May 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l18&quot;&gt;Line 18:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 18:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    // key status is unchanged&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    // key status is unchanged&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== Scancodes ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{M32_Scancodes}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Mapster32 commands]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Mapster32 commands]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key edukewiki:diff:1.41:old-14734:rev-14739:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Doom64hunter</name></author>
	</entry>
	<entry>
		<id>https://wiki.eduke32.com/w/index.php?title=M32:ifholdkey&amp;diff=14734&amp;oldid=prev</id>
		<title>Doom64hunter: Created page with &quot;ifholdkey &lt;KEY_SC&gt;  This command will branch if the key specified by the scancode has been activated, or take the &#039;else&#039; branch otherwise.  Unlike ifhitkey, ifholdkey does not affect the status of the key after the block is exited.  See also: ifhitkey  &#039;&#039;&#039;Usage:&#039;&#039;&#039;    ifholdkey KEY_F    {       // do stuff if key active    }    else    {       // do stuff if key inactive    }        // key status is un...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.eduke32.com/w/index.php?title=M32:ifholdkey&amp;diff=14734&amp;oldid=prev"/>
		<updated>2022-05-08T18:30:42Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/wiki/M32:ifholdkey&quot; title=&quot;M32:ifholdkey&quot;&gt;ifholdkey&lt;/a&gt; &amp;lt;KEY_SC&amp;gt;  This command will branch if the key specified by the scancode has been activated, or take the &amp;#039;else&amp;#039; branch otherwise.  Unlike &lt;a href=&quot;/wiki/M32:ifhitkey&quot; title=&quot;M32:ifhitkey&quot;&gt;ifhitkey&lt;/a&gt;, &lt;a href=&quot;/wiki/M32:ifholdkey&quot; title=&quot;M32:ifholdkey&quot;&gt;ifholdkey&lt;/a&gt; does not affect the status of the key after the block is exited.  See also: &lt;a href=&quot;/wiki/M32:ifhitkey&quot; title=&quot;M32:ifhitkey&quot;&gt;ifhitkey&lt;/a&gt;  &amp;#039;&amp;#039;&amp;#039;Usage:&amp;#039;&amp;#039;&amp;#039;    ifholdkey KEY_F    {       // do stuff if key active    }    else    {       // do stuff if key inactive    }        // key status is un...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[M32:ifholdkey|ifholdkey]] &amp;lt;KEY_SC&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This command will branch if the key specified by the scancode has been activated, or take the &amp;#039;else&amp;#039; branch otherwise.&lt;br /&gt;
&lt;br /&gt;
Unlike [[M32:ifhitkey|ifhitkey]], [[M32:ifholdkey|ifholdkey]] does not affect the status of the key after the block is exited.&lt;br /&gt;
&lt;br /&gt;
See also: [[M32:ifhitkey|ifhitkey]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Usage:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
   ifholdkey KEY_F&lt;br /&gt;
   {&lt;br /&gt;
      // do stuff if key active&lt;br /&gt;
   }&lt;br /&gt;
   else&lt;br /&gt;
   {&lt;br /&gt;
      // do stuff if key inactive&lt;br /&gt;
   }&lt;br /&gt;
   &lt;br /&gt;
   // key status is unchanged&lt;br /&gt;
&lt;br /&gt;
[[Category:Mapster32 commands]]&lt;/div&gt;</summary>
		<author><name>Doom64hunter</name></author>
	</entry>
</feed>