Difference between revisions of "Joystick:setSensorEnabled"
(Created page) |
m |
||
Line 25: | Line 25: | ||
{{#set:Description=Gets whether the specified sensor is currently enabled on this Joystick.}} | {{#set:Description=Gets whether the specified sensor is currently enabled on this Joystick.}} | ||
== Other Languages == | == Other Languages == | ||
− | {{i18n|Joystick: | + | {{i18n|Joystick:setSensorEnabled}} |
Revision as of 00:57, 15 June 2024
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