Difference between revisions of "cock.getJoystickDeadzone"
(Created page with "Gets joystick deadzone. == Synopsis == === Function === <source lang="Lua">threshold = cock.getJoystickDeadzone ( self, joystick, axis )</source> === Arguments === {{param|table|...") |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
Gets joystick deadzone. | Gets joystick deadzone. | ||
− | == | + | == Function == |
− | === | + | === Synopsis === |
<source lang="Lua">threshold = cock.getJoystickDeadzone ( self, joystick, axis )</source> | <source lang="Lua">threshold = cock.getJoystickDeadzone ( self, joystick, axis )</source> | ||
=== Arguments === | === Arguments === | ||
{{param|table|self|An object to use.}} | {{param|table|self|An object to use.}} | ||
− | {{param|number|joystick|Internal joystick number.}} | + | {{param|number|joystick|Optional. Internal joystick number. Will use 1 if not provided.}} |
− | {{param|string|joystick|Internal joystick name.}} | + | {{param|string|joystick|Optional. Internal joystick name.}} |
− | {{param|number|axis|Optional. LÖVE joystick axis.}} | + | {{param|number|axis|Optional. LÖVE joystick axis. Will use 1 if not provided.}} |
{{param|string|axis|Optional. [[Common Organization of Controls Kit Input keys|Axis]] name.}} | {{param|string|axis|Optional. [[Common Organization of Controls Kit Input keys|Axis]] name.}} | ||
=== Returns === | === Returns === | ||
{{param|number|threshold|Deadzone threshold.}} | {{param|number|threshold|Deadzone threshold.}} | ||
− | |||
− | |||
==See also== | ==See also== | ||
*[[cock.setJoystickDeadzone]] | *[[cock.setJoystickDeadzone]] |
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
- cock.setJoystickDeadzone
- Common Organization of Controls Kit Input keys
- Common Organization of Controls Kit Manual
- Common Organization of Controls Kit