Difference between revisions of "cock.getJoystickDeadzone"

m
m
 
Line 1: Line 1:
 
Gets joystick deadzone.
 
Gets joystick deadzone.
== Synopsis ==
+
== Function ==
=== Function ===
+
=== Synopsis ===
 
<source lang="Lua">threshold = cock.getJoystickDeadzone ( self, joystick, axis )</source>
 
<source lang="Lua">threshold = cock.getJoystickDeadzone ( self, joystick, axis )</source>
 
=== Arguments ===
 
=== Arguments ===

Latest revision as of 15:00, 2 September 2013

Gets joystick deadzone.

Function

Synopsis

threshold = cock.getJoystickDeadzone ( self, joystick, axis )

Arguments

table self
An object to use.
number joystick
Optional. Internal joystick number. Will use 1 if not provided.
string joystick
Optional. Internal joystick name.
number axis
Optional. LÖVE joystick axis. Will use 1 if not provided.
string axis
Optional. Axis name.

Returns

number threshold
Deadzone threshold.

See also