##### Views

- Page
- Discussion
- View source
- History

# love.joystickpressed

Called when a joystick button is pressed.

## Function

Available since LÖVE 0.9.0
This variant is not supported in earlier versions.

### Synopsis

love.joystickpressed( joystick, button )

### Arguments

`Joystick joystick`
  The joystick object.
`number button`
  The button number.

### Returns

Nothing.

## Function

Removed in LÖVE 0.9.0
This variant is not supported in that and later versions.

### Synopsis

love.joystickpressed( joystick, button )

### Arguments

`number joystick`
  The joystick number.
`number button`
  The button number.

### Returns

Nothing.

## See Also

- love
- love.joystickreleased

## Other Languages

Dansk – Deutsch – English – Español – Français – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Polski – Português – Română – Slovenský – Suomi – Svenska – Türkçe – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – ไทย – 日本語 – 正體中文 – 简体中文 – Tiếng Việt – 한국어
More info

Retrieved from "https://www.love2d.org/wiki/love.joystickpressed"
Categories: Templates | Callbacks

##### Personal tools

- Log in

##### Search

##### Toolbox

- What links here
- Related changes
- Special pages
- Printable version
- Permanent link
- Browse properties