You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/classes/Input.xml
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -200,6 +200,14 @@
200
200
By default, the deadzone is automatically calculated from the average of the action deadzones. However, you can override the deadzone to be whatever you want (on the range of 0 to 1).
201
201
</description>
202
202
</method>
203
+
<methodname="has_joy_light"qualifiers="const">
204
+
<returntype="bool" />
205
+
<paramindex="0"name="device"type="int" />
206
+
<description>
207
+
Returns [code]true[/code] if the joypad has an LED light that can change colors and/or brightness, otherwise returns [code]false[/code].
208
+
[b]Note:[/b] This feature is only supported on Windows, Linux, and macOS.
[b]Note:[/b] This value can be immediately overwritten by the hardware sensor value on Android and iOS.
390
398
</description>
391
399
</method>
400
+
<methodname="set_joy_light">
401
+
<returntype="bool" />
402
+
<paramindex="0"name="device"type="int" />
403
+
<paramindex="1"name="color"type="Color" />
404
+
<description>
405
+
Sets the joypad's LED light, if available, to the specified color. Returns [code]true[/code] if the operation was successful.
406
+
[b]Note:[/b] There is no way to get the color of the light from a joypad. If you need to use the color for something else, store it in a separate variable.
407
+
[b]Note:[/b] This feature is only supported on Windows, Linux, and macOS.
0 commit comments