cock.setDefaultXBox360

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


Personal tools