Difference between revisions of "cock.setDefaultXBox360"

m (Arguments)
m
 
Line 1: Line 1:
 
Creates a layout for XBox360 controller.  
 
Creates a layout for XBox360 controller.  
'''NOTE:''' this feature is not really ready to use. It partially works with Windows (both triggers are mapped to the same axis), and being unusable under Linux and Mac OS (joystick hat is not functional and axis are messed up). So far you shouldn't use it. Proper implementation of this function is scheduled.
+
 
== Synopsis ==
+
'''NOTE:''' this feature is not ready to use. It partially works with Windows (both triggers are mapped to the same axis), and being unusable under Linux and Mac OS (joystick hat is not functional and axis are messed up). So far you shouldn't use it. Proper implementation of this function is scheduled.
=== Function ===
+
== Function ==
 +
=== Synopsis ===
 
<source lang="Lua">joystick = cock.setDefaultXBox360 ( self, override, joystick )</source>
 
<source lang="Lua">joystick = cock.setDefaultXBox360 ( self, override, joystick )</source>
 
=== Arguments ===
 
=== Arguments ===
Line 18: Line 19:
 
*[[Common Organization of Controls Kit]]
 
*[[Common Organization of Controls Kit]]
  
{{#set:Description=Creates XBox360 layout.}}
+
{{#set:Description=(BROKEN) Creates XBox360 layout.}}

Latest revision as of 15:10, 2 September 2013

Creates a layout for XBox360 controller.

NOTE: this feature is not ready to use. It partially works with Windows (both triggers are mapped to the same axis), and being unusable under Linux and Mac OS (joystick hat is not functional and axis are messed up). So far you shouldn't use it. Proper implementation of this function is scheduled.

Function

Synopsis

joystick = cock.setDefaultXBox360 ( self, override, joystick )

Arguments

table self
An object to use.
string override
Optional. Will override standard layout name. Will use "XBox360" if not provided.
number joystick
Optional. Will link specified joystick to the layout. Will use joystick #1 if not provided.

Returns

number joystick
Internal joystick number. May differ from specified.

See also