|
|
(One intermediate revision by the same user not shown) |
Line 1: |
Line 1: |
− | {{newin|[[0.8.1]]|081|type=function}}
| |
− | Rescans for joysticks, making newly plugged ones available, and removing unplugged ones.
| |
| | | |
− | NOTE: The joystick indexes can, and will change, if you rely on them, you could try grabbing the names beforehand and then updating their indices by matching the names afterwards.
| |
− |
| |
− | {{notice|This is a resource-heavy function, do not run this often, and '''definitely''' not every frame. This is best run when entering a keybinds menu, for instance.}}
| |
− | == Function ==
| |
− | === Synopsis ===
| |
− | <source lang="lua">
| |
− | love.joystick.reload( )
| |
− | </source>
| |
− | === Arguments ===
| |
− | None.
| |
− | === Returns ===
| |
− | Nothing.
| |
− | == See Also ==
| |
− | * [[parent::love.joystick]]
| |
− | [[Category:Functions]]
| |
− | {{#set:Description=Updated joystick index}}
| |
− | == Other Languages ==
| |
− | {{i18n|love.joystick.reload}}
| |