Difference between revisions of "Joystick:setSensorEnabled"

m
m
 
Line 23: Line 23:
 
* [[love.joysticksensorupdated]]
 
* [[love.joysticksensorupdated]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Gets whether the specified sensor is currently enabled on this Joystick.}}
+
{{#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

Other Languages