Difference between revisions of "love.joystick.getHat"

m
Line 14: Line 14:
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Returns the direction of a hat.}}
 
{{#set:Description=Returns the direction of a hat.}}
 +
{{#set:Since=000}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.joystick.getHat}}
 
{{i18n|love.joystick.getHat}}

Revision as of 10:30, 25 March 2011

Returns the direction of a hat.

Function

Synopsis

direction = love.joystick.getHat( joystick, hat )

Arguments

number joystick
The joystick to be checked
number hat
The hat to be checked

Returns

JoystickConstant direction
The direction the hat is pushed

See Also


Other Languages