|
44 | 44 | <description> |
45 | 45 | Clears the calibration information for the specified joypad's motion sensors, if it has any and if they were calibrated. |
46 | 46 | See [method start_joy_motion_sensors_calibration] for an example on how to use joypad motion sensors and calibration in your games. |
47 | | - [b]Note:[/b] This feature is only supported on Windows, Linux, and macOS. |
| 47 | + [b]Note:[/b] This feature is only supported on Windows, Linux, macOS, and iOS. |
48 | 48 | </description> |
49 | 49 | </method> |
50 | 50 | <method name="flush_buffered_events"> |
|
128 | 128 | +Y ... -Y: bottom ... top; |
129 | 129 | +Z ... -Z: farther ... closer. |
130 | 130 | The gravity part value is measured as a vector with length of [code]9.8[/code] away from the center of the Earth, which is a negative Y value. |
131 | | - [b]Note:[/b] This feature is only supported on Windows, Linux, and macOS. |
| 131 | + [b]Note:[/b] This feature is only supported on Windows, Linux, and macOS. On iOS, joypad accelerometer sensor reading is not supported due to OS limitations. |
132 | 132 | </description> |
133 | 133 | </method> |
134 | 134 | <method name="get_joy_axis" qualifiers="const"> |
|
149 | 149 | +Y ... -Y: bottom ... top; |
150 | 150 | +Z ... -Z: farther ... closer. |
151 | 151 | The gravity part value is measured as a vector with length of [code]9.8[/code] away from the center of the Earth, which is a negative Y value. |
152 | | - [b]Note:[/b] This feature is only supported on Windows, Linux, and macOS. |
| 152 | + [b]Note:[/b] This feature is only supported on Windows, Linux, and macOS. On iOS, joypad accelerometer sensor reading is not supported due to OS limitations. |
153 | 153 | </description> |
154 | 154 | </method> |
155 | 155 | <method name="get_joy_guid" qualifiers="const"> |
|
171 | 171 | Y: Angular speed around the Y axis (yaw); |
172 | 172 | Z: Angular speed around the Z axis (roll). |
173 | 173 | See [method start_joy_motion_sensors_calibration] for an example on how to use joypad gyroscope and gyroscope calibration in your games. |
174 | | - [b]Note:[/b] This feature is only supported on Windows, Linux, and macOS. |
| 174 | + [b]Note:[/b] This feature is only supported on Windows, Linux, macOS, and iOS. |
175 | 175 | </description> |
176 | 176 | </method> |
177 | 177 | <method name="get_joy_info" qualifiers="const"> |
178 | 178 | <return type="Dictionary" /> |
179 | 179 | <param index="0" name="device" type="int" /> |
180 | 180 | <description> |
181 | 181 | Returns a dictionary with extra platform-specific information about the device, e.g. the raw gamepad name from the OS or the Steam Input index. |
182 | | - On Windows, Linux, and macOS, the dictionary contains the following fields: |
| 182 | + On Windows, Linux, macOS, and iOS, the dictionary contains the following fields: |
183 | 183 | [code]raw_name[/code]: The name of the controller as it came from the OS, before getting renamed by the controller database. |
184 | 184 | [code]vendor_id[/code]: The USB vendor ID of the device. |
185 | 185 | [code]product_id[/code]: The USB product ID of the device. |
186 | 186 | [code]serial_number[/code]: The serial number of the device. This key won't be present if the serial number is unavailable. |
187 | | - [code]steam_input_index[/code]: The Steam Input gamepad index, if the device is not a Steam Input device this key won't be present. |
188 | | - On Windows, the dictionary can have an additional field: |
189 | | - [code]xinput_index[/code]: The index of the controller in the XInput system. This key won't be present for devices not handled by XInput. |
190 | | - [b]Note:[/b] The returned dictionary is always empty on Android, iOS, visionOS, and Web. |
| 187 | + The dictionary can also include the following fields under selected platforms: |
| 188 | + [code]steam_input_index[/code]: The Steam Input gamepad index (Windows, Linux, and macOS only). If the device is not a Steam Input device this key won't be present. |
| 189 | + [code]xinput_index[/code]: The index of the controller in the XInput system (Windows only). This key won't be present for devices not handled by XInput. |
| 190 | + [b]Note:[/b] The returned dictionary is always empty on Android and Web. |
191 | 191 | </description> |
192 | 192 | </method> |
193 | 193 | <method name="get_joy_motion_sensors_calibration" qualifiers="const" experimental=""> |
|
198 | 198 | The dictionary contains the following fields: |
199 | 199 | [code]gyroscope_offset[/code]: average offset in gyroscope values from [constant Vector2.ZERO] in rad/s. |
200 | 200 | See [method start_joy_motion_sensors_calibration] for an example on how to use joypad motion sensors and calibration in your games. |
201 | | - [b]Note:[/b] This feature is only supported on Windows, Linux, and macOS. |
| 201 | + [b]Note:[/b] This feature is only supported on Windows, Linux, macOS, and iOS. |
202 | 202 | </description> |
203 | 203 | </method> |
204 | 204 | <method name="get_joy_motion_sensors_rate" qualifiers="const" experimental=""> |
205 | 205 | <return type="float" /> |
206 | 206 | <param index="0" name="device" type="int" /> |
207 | 207 | <description> |
208 | 208 | Returns the joypad's motion sensor rate in Hz, if the joypad has motion sensors and they're currently enabled. See also [method set_joy_motion_sensors_enabled]. |
209 | | - [b]Note:[/b] This feature is only supported on Windows, Linux, and macOS. |
| 209 | + [b]Note:[/b] This feature is only supported on Windows, Linux, macOS, and iOS. |
210 | 210 | </description> |
211 | 211 | </method> |
212 | 212 | <method name="get_joy_name"> |
|
274 | 274 | <param index="0" name="device" type="int" /> |
275 | 275 | <description> |
276 | 276 | Returns [code]true[/code] if the joypad has an LED light that can change colors and/or brightness. See also [method set_joy_light]. |
277 | | - [b]Note:[/b] This feature is only supported on Windows, Linux, and macOS. |
| 277 | + [b]Note:[/b] This feature is only supported on Windows, Linux, macOS, and iOS. |
278 | 278 | </description> |
279 | 279 | </method> |
280 | 280 | <method name="has_joy_motion_sensors" qualifiers="const" experimental=""> |
281 | 281 | <return type="bool" /> |
282 | 282 | <param index="0" name="device" type="int" /> |
283 | 283 | <description> |
284 | 284 | Returns [code]true[/code] if the joypad has motion sensors (accelerometer and gyroscope). |
285 | | - [b]Note:[/b] This feature is only supported on Windows, Linux, and macOS. |
| 285 | + [b]Note:[/b] On iOS, joypad accelerometer sensor reading is not supported due to OS limitations. |
| 286 | + [b]Note:[/b] This feature is only supported on Windows, Linux, macOS, and iOS. |
286 | 287 | </description> |
287 | 288 | </method> |
288 | 289 | <method name="is_action_just_pressed" qualifiers="const"> |
|
371 | 372 | <description> |
372 | 373 | Returns [code]true[/code] if the joypad's motion sensors have been calibrated. |
373 | 374 | See [method start_joy_motion_sensors_calibration] for an example on how to use joypad motion sensors and calibration in your games. |
374 | | - [b]Note:[/b] This feature is only supported on Windows, Linux, and macOS. |
| 375 | + [b]Note:[/b] This feature is only supported on Windows, Linux, macOS, and iOS. |
375 | 376 | </description> |
376 | 377 | </method> |
377 | 378 | <method name="is_joy_motion_sensors_calibrating" qualifiers="const" experimental=""> |
|
380 | 381 | <description> |
381 | 382 | Returns [code]true[/code] if the joypad's motion sensors are currently being calibrated. |
382 | 383 | See [method start_joy_motion_sensors_calibration] for an example on how to use joypad motion sensors and calibration in your games. |
383 | | - [b]Note:[/b] This feature is only supported on Windows, Linux, and macOS. |
| 384 | + [b]Note:[/b] This feature is only supported on Windows, Linux, macOS, and iOS. |
384 | 385 | </description> |
385 | 386 | </method> |
386 | 387 | <method name="is_joy_motion_sensors_enabled" qualifiers="const" experimental=""> |
|
389 | 390 | <description> |
390 | 391 | Returns [code]true[/code] if the requested joypad has motion sensors (accelerometer and gyroscope) and they are currently enabled. See also [method set_joy_motion_sensors_enabled] and [method has_joy_motion_sensors]. |
391 | 392 | See [method start_joy_motion_sensors_calibration] for an example on how to use joypad motion sensors and calibration in your games. |
392 | | - [b]Note:[/b] This feature is only supported on Windows, Linux, and macOS. |
| 393 | + [b]Note:[/b] This feature is only supported on Windows, Linux, macOS, and iOS. |
393 | 394 | </description> |
394 | 395 | </method> |
395 | 396 | <method name="is_key_label_pressed" qualifiers="const"> |
|
508 | 509 | <description> |
509 | 510 | Sets the joypad's LED light, if available, to the specified color. See also [method has_joy_light]. |
510 | 511 | [b]Note:[/b] There is no way to get the color of the light from a joypad. If you need to know the assigned color, store it separately. |
511 | | - [b]Note:[/b] This feature is only supported on Windows, Linux, and macOS. |
| 512 | + [b]Note:[/b] This feature is only supported on Windows, Linux, macOS, and iOS. |
512 | 513 | </description> |
513 | 514 | </method> |
514 | 515 | <method name="set_joy_motion_sensors_calibration" experimental=""> |
|
518 | 519 | <description> |
519 | 520 | Sets the specified joypad's calibration information. See also [method get_joy_motion_sensors_calibration]. |
520 | 521 | See [method start_joy_motion_sensors_calibration] for an example on how to use joypad motion sensors and calibration in your games. |
521 | | - [b]Note:[/b] This feature is only supported on Windows, Linux, and macOS. |
| 522 | + [b]Note:[/b] This feature is only supported on Windows, Linux, macOS, and iOS. |
522 | 523 | </description> |
523 | 524 | </method> |
524 | 525 | <method name="set_joy_motion_sensors_enabled" experimental=""> |
|
529 | 530 | Enables or disables the motion sensors (accelerometer and gyroscope), if available, on the specified joypad. |
530 | 531 | See [method start_joy_motion_sensors_calibration] for an example on how to use joypad motion sensors and calibration in your games. |
531 | 532 | It's recommended to disable the motion sensors when they're no longer being used, because otherwise it might drain the controller battery faster. |
532 | | - [b]Note:[/b] This feature is only supported on Windows, Linux, and macOS. |
| 533 | + [b]Note:[/b] This feature is only supported on Windows, Linux, macOS, and iOS. |
533 | 534 | </description> |
534 | 535 | </method> |
535 | 536 | <method name="set_magnetometer"> |
|
654 | 655 | [/csharp] |
655 | 656 | [/codeblocks] |
656 | 657 | [b]Note:[/b] Accelerometer sensor doesn't usually require calibration. |
657 | | - [b]Note:[/b] This feature is only supported on Windows, Linux, and macOS. |
| 658 | + [b]Note:[/b] This feature is only supported on Windows, Linux, macOS, and iOS. |
658 | 659 | </description> |
659 | 660 | </method> |
660 | 661 | <method name="start_joy_vibration"> |
|
675 | 676 | <description> |
676 | 677 | Stops the calibration process of the specified joypad's motion sensors. |
677 | 678 | See [method start_joy_motion_sensors_calibration] for an example on how to use joypad motion sensors and calibration in your games. |
678 | | - [b]Note:[/b] This feature is only supported on Windows, Linux, and macOS. |
| 679 | + [b]Note:[/b] This feature is only supported on Windows, Linux, macOS, and iOS. |
679 | 680 | </description> |
680 | 681 | </method> |
681 | 682 | <method name="stop_joy_vibration"> |
|
0 commit comments