<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dev.playonset.com/index.php?action=history&amp;feed=atom&amp;title=OnAxisKey</id>
	<title>OnAxisKey - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://dev.playonset.com/index.php?action=history&amp;feed=atom&amp;title=OnAxisKey"/>
	<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=OnAxisKey&amp;action=history"/>
	<updated>2026-05-31T21:01:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://dev.playonset.com/index.php?title=OnAxisKey&amp;diff=5010&amp;oldid=prev</id>
		<title>BlueMountains: Created page with &quot;{{Info|Event|Client|1.5.5}}  {{FuncDescription|Called when the player pressed a specific key that is an &quot;action&quot;. For example the space-bar for jumping.  Returning &#039;&#039;&#039;false&#039;&#039;&#039; in this function cancels the action.}}  {{FuncSyntax|OnAxisKey(EventType, AxisName, KeyName)}}  {{FuncParameters}} {{FuncParam|EventType|The input event of type EInputEvent}} {{FuncParam|AxisName|The name of the axis. For example &quot;Brake&quot; or &quot;MoveForward&quot;.}} {{FuncParam|KeyName|The name of the key a...&quot;</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=OnAxisKey&amp;diff=5010&amp;oldid=prev"/>
		<updated>2022-02-23T19:58:02Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Info|Event|Client|1.5.5}}  {{FuncDescription|Called when the player pressed a specific key that is an &amp;quot;action&amp;quot;. For example the space-bar for jumping.  Returning &amp;#039;&amp;#039;&amp;#039;false&amp;#039;&amp;#039;&amp;#039; in this function cancels the action.}}  {{FuncSyntax|OnAxisKey(EventType, AxisName, KeyName)}}  {{FuncParameters}} {{FuncParam|EventType|The input event of type EInputEvent}} {{FuncParam|AxisName|The name of the axis. For example &amp;quot;Brake&amp;quot; or &amp;quot;MoveForward&amp;quot;.}} {{FuncParam|KeyName|The name of the key a...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Info|Event|Client|1.5.5}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Called when the player pressed a specific key that is an &amp;quot;action&amp;quot;. For example the space-bar for jumping.&lt;br /&gt;
&lt;br /&gt;
Returning &amp;#039;&amp;#039;&amp;#039;false&amp;#039;&amp;#039;&amp;#039; in this function cancels the action.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|OnAxisKey(EventType, AxisName, KeyName)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|EventType|The input event of type EInputEvent}}&lt;br /&gt;
{{FuncParam|AxisName|The name of the axis. For example &amp;quot;Brake&amp;quot; or &amp;quot;MoveForward&amp;quot;.}}&lt;br /&gt;
{{FuncParam|KeyName|The name of the key as a string.}}&lt;br /&gt;
&lt;br /&gt;
List of all AxisNames&lt;br /&gt;
&lt;br /&gt;
[[File:AxisNames.PNG]]&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
function OnAxisKey(EventType, AxisName, KeyName)&lt;br /&gt;
	AddPlayerChat(AxisName)&lt;br /&gt;
	if ActionName == &amp;quot;Brake&amp;quot; then&lt;br /&gt;
		return false -- This will cancel the action. In this case the player is unable to brake with their car.&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
AddEvent(&amp;quot;OnAxisKey&amp;quot;, OnAxisKey)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
{{KeyClientEvents}}&lt;/div&gt;</summary>
		<author><name>BlueMountains</name></author>
	</entry>
</feed>