Difference between revisions of "love.joystickhat"

m (Updated for Joystick objects)
m
Line 9: Line 9:
 
{{param|Joystick|joystick|The joystick object.}}
 
{{param|Joystick|joystick|The joystick object.}}
 
{{param|number|hat|The hat number.}}
 
{{param|number|hat|The hat number.}}
{{param|JoystickConstant|direction|The new hat direction.}}
+
{{param|JoystickHat|direction|The new hat direction.}}
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.

Revision as of 21:58, 26 August 2013

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

Joystick joystick
The joystick object.
number hat
The hat number.
JoystickHat direction
The new hat direction.

Returns

Nothing.

See Also

Other Languages