cock.addJoystick

Adds new joystick to the object by given joystick number.

Synopsis

Function

joystick = cock.addJoystick ( self, number )

Arguments

table self
An object to use.
number number
Optional. LÖVE joystick number to hook up. Will use 1 if not provided.

Returns

number joystick
Internal joystick number.

See also