|
|
(2 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
− | 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=Rescans for joystick}}
| |
− | {{#set:Since=081}}
| |
− | == Other Languages ==
| |
− | {{i18n|love.joystick.reload}}
| |