{{newin|[[0.9.0]]|090|type=function}}
Called when a Joystick's virtual gamepad button is pressed.
== Function ==
=== Synopsis ===
<source lang="lua">
love.gamepadpressed( joystick, button )
</source>
=== Arguments ===
{{param|Joystick|joystick|The joystick object.}}
{{param|GamepadButton|button|The virtual gamepad button.}}
=== Returns ===
Nothing.

== See Also ==
* [[parent::love]]
* [[love.gamepadreleased]]
* [[Joystick:isGamepad]]
[[Category:Callbacks]]
{{#set:Description=Called when a Joystick's virtual gamepad button is pressed.}}
{{#set:Subcategory=Joystick}}
== Other Languages ==
{{i18n|love.gamepadpressed}}