cock.setJoystickHatMode

Sets joystick hat mode per hat.

Synopsis

Function

cock.setJoystickHatMode ( self, joystick, hat, mode )

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 hat
Optional. LÖVE joystick hat. Will use 1 if not provided.
string hat
Optional. Hat name.
number mode
Optional. Hat mode number. Will use 1 if not provided.
string mode
Hat mode name.

See also