Joystick:setPlayerIndex
Available since LÖVE 12.0 |
This function is not supported in earlier versions. |
Sets the player index of this Joystick. This corresponds to an indicator light on many common gamepads.
Note that this is independent from the array index of this Joystick in the table returned by love.joystick.getJoysticks.
Function
Synopsis
Joystick:setPlayerIndex( index )
Arguments
number index
- The 1-based player index to use for this Joystick.
Returns
Nothing.
See Also
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