{{newin|[[0.9.0]]|090|type=function}}
Gets whether the Joystick is recognized as a gamepad. If this is the case, the Joystick's buttons and axes can be used in a standardized manner across different operating systems and joystick models via [[Joystick:getGamepadAxis]], [[Joystick:isGamepadDown]], [[love.gamepadpressed]], and related functions.

LÖVE automatically recognizes most popular controllers with a similar layout to the Xbox 360 controller as gamepads, but you can add more with [[love.joystick.setGamepadMapping]].
== Function ==
=== Synopsis ===
<source lang="lua">
isgamepad = Joystick:isGamepad( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|boolean|isgamepad|True if the Joystick is recognized as a gamepad, false otherwise.}}

== Notes ==
If the Joystick is recognized as a gamepad, the physical locations for the virtual gamepad axes and buttons correspond as closely as possible to the layout of a standard Xbox 360 controller.

[[File:360_controller.png]]

== See Also ==
* [[parent::Joystick]]
* [[Joystick:getGamepadAxis]]
* [[Joystick:isGamepadDown]]
* [[Joystick:getGamepadMapping]]

* [[love.gamepadaxis]]
* [[love.gamepadpressed]]
* [[love.gamepadreleased]]
[[Category:Functions]]
{{#set:Description=Gets whether the Joystick is recognized as a gamepad.}}
== Other Languages ==
{{i18n|Joystick:isGamepad}}