{{newin|[[0.9.0]]|090|type=function}}
Gets a list of connected Joysticks.
== Function ==
=== Synopsis ===
<source lang="lua">
joysticks = love.joystick.getJoysticks( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|table|joysticks|The list of currently connected [[Joystick]]s.}}
== Examples ==
<source lang="lua">
function love.draw()
    local joysticks = love.joystick.getJoysticks()
    for i, joystick in ipairs(joysticks) do
        love.graphics.print(joystick:getName(), 10, i * 20)
    end
end
</source>

== See Also ==
* [[Constructs::Joystick]]
* [[parent::love.joystick]]
* [[love.joystick.getJoystickCount]]

* [[love.joystickadded]]
* [[love.joystickremoved]]
[[Category:Functions]]
{{#set:Description=Gets a list of connected Joysticks.}}
== Other Languages ==
{{i18n|love.joystick.getJoysticks}}