love.joystickhat

Available since LÖVE 0.9.0
This callback is not supported in earlier versions.

Called when a joystick hat direction changes.

Function

Synopsis

love.joystickhat( joystick, hat, direction )

Arguments

number joystick
The joystick number.
number hat
The hat number.
JoystickConstant direction
The new hat direction.

Returns

Nothing.

See Also

Other Languages