Joystick:setSensorEnabled
Available since LÖVE 12.0 |
This method is not supported in earlier versions. |
Enables or disables the specified sensor on this Joystick.
The given sensor type must exist on this Joystick, otherwise this function may cause an error.
Function
Synopsis
Joystick:setSensorEnabled( sensorType, enable )
Arguments
SensorType sensorType
- Type of sensor to enable or disable.
boolean enable
- True to enable the given sensor, false to disable it.
Returns
Nothing.
See Also
- Joystick
- Joystick:hasSensor
- Joystick:isSensorEnabled
- Joystick:getSensorData
- love.joysticksensorupdated
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