Difference between revisions of "Joystick:setSensorEnabled"
m |
m |
||
Line 23: | Line 23: | ||
* [[love.joysticksensorupdated]] | * [[love.joysticksensorupdated]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | {{#set:Description= | + | {{#set:Description=Enables or disables the specified sensor on this Joystick.}} |
== Other Languages == | == Other Languages == | ||
{{i18n|Joystick:setSensorEnabled}} | {{i18n|Joystick:setSensorEnabled}} |
Latest 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