<?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%2FJoystick</id>
		<title>Legacy:Functions/Input/Joystick - 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%2FJoystick"/>
		<link rel="alternate" type="text/html" href="http://wiki.spheredev.org/index.php?title=Legacy:Functions/Input/Joystick&amp;action=history"/>
		<updated>2026-05-10T13:41:06Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.29.0</generator>

	<entry>
		<id>http://wiki.spheredev.org/index.php?title=Legacy:Functions/Input/Joystick&amp;diff=528&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/Joystick&amp;diff=528&amp;oldid=prev"/>
				<updated>2013-05-30T23:09:46Z</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;=== Joystick ===&lt;br /&gt;
==== General device polling ====&lt;br /&gt;
* [[API:GetNumJoysticks|GetNumJoysticks]](): Returns the number of joysticks available to Sphere.&lt;br /&gt;
* [[API:GetNumJoystickButtons|GetNumJoystickButtons]](''joystick''): Returns the number of buttons available on this joystick.&lt;br /&gt;
* [[API:GetNumJoystickAxes|GetNumJoystickAxes]](''joystick''): Returns the number of available axes on the given joystick.&lt;br /&gt;
&lt;br /&gt;
* [[API:GetTalkActivationButton|GetTalkActivationButton]](): Get joystick button used to activate talk scripts.&lt;br /&gt;
* [[API:SetTalkActivationButton|SetTalkActivationButton]](''button''): Set joystick button used to activate talk scripts.&lt;br /&gt;
&lt;br /&gt;
==== Button status ====&lt;br /&gt;
* [[API:IsJoystickButtonPressed|IsJoystickButtonPressed]](''joystick'', ''button''): Find if a button on a joystick is being held down.&lt;br /&gt;
&lt;br /&gt;
==== Orientation ====&lt;br /&gt;
* [[API:GetJoystickAxis|GetJoystickAxis]](''joystick'', ''axis''): Returns the current joystick axis position in normalized coordinates fro -1 to 1.&lt;br /&gt;
* Allowed axis values:	 &lt;br /&gt;
** &amp;lt;var&amp;gt;JOYSTICK_AXIS_X&amp;lt;/var&amp;gt;	 &lt;br /&gt;
** &amp;lt;var&amp;gt;JOYSTICK_AXIS_Y&amp;lt;/var&amp;gt;	 &lt;br /&gt;
** &amp;lt;var&amp;gt;JOYSTICK_AXIS_Z&amp;lt;/var&amp;gt;	 &lt;br /&gt;
** &amp;lt;var&amp;gt;JOYSTICK_AXIS_R (rotation)&amp;lt;/var&amp;gt;&lt;/div&gt;</summary>
		<author><name>Apollolux</name></author>	</entry>

	</feed>