Difference between revisions of "cock.setDefaultXBox360"
(Created page with "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 be...") |
m (→Arguments) |
||
Line 7: | Line 7: | ||
{{param|table|self|An object to use.}} | {{param|table|self|An object to use.}} | ||
{{param|string|override|Optional. Will override standard layout name. Will use "XBox360" if not provided.}} | {{param|string|override|Optional. Will override standard layout name. Will use "XBox360" if not provided.}} | ||
− | {{param|number|joystick|Optional. Will link specified joystick to the layout. Will use joystick #1 if not provided. | + | {{param|number|joystick|Optional. Will link specified joystick to the layout. Will use joystick #1 if not provided.}} |
+ | |||
=== Returns === | === Returns === | ||
{{param|number|joystick|Internal joystick number. May differ from specified.}} | {{param|number|joystick|Internal joystick number. May differ from specified.}} |
Revision as of 19:03, 31 August 2013
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
Function
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
- cock.addJoystick
- cock.setDefault
- Common Organization of Controls Kit Manual
- Common Organization of Controls Kit