diff options
author | sumneko <sumneko@hotmail.com> | 2022-02-08 21:57:56 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2022-02-08 21:57:56 +0800 |
commit | 007e8637827b75d95f188df0f1c3173cabc53a8b (patch) | |
tree | 69fd9f98ba75099b97080c95001f3d6452de49d3 /meta/3rd/love2d/library/love.joystick.lua | |
parent | ee476c7f4fb29ab6cf6e77205745428c0e2a8601 (diff) | |
download | lua-language-server-007e8637827b75d95f188df0f1c3173cabc53a8b.zip |
fix #941
Diffstat (limited to 'meta/3rd/love2d/library/love.joystick.lua')
-rw-r--r-- | meta/3rd/love2d/library/love.joystick.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/3rd/love2d/library/love.joystick.lua b/meta/3rd/love2d/library/love.joystick.lua index df3ea208..29e21cd8 100644 --- a/meta/3rd/love2d/library/love.joystick.lua +++ b/meta/3rd/love2d/library/love.joystick.lua @@ -121,7 +121,7 @@ function Joystick:getGamepadAxis(axis) end --- ---Gets the button, axis or hat that a virtual gamepad input is bound to. --- ----@overload fun(button: love.GamepadButton):love.JoystickInputType, number, love.JoystickHat +---@overload fun(self: love.Joystick, button: love.GamepadButton):love.JoystickInputType, number, love.JoystickHat ---@param axis love.GamepadAxis # The virtual gamepad axis to get the binding for. ---@return love.JoystickInputType inputtype # The type of input the virtual gamepad axis is bound to. ---@return number inputindex # The index of the Joystick's button, axis or hat that the virtual gamepad axis is bound to. @@ -208,8 +208,8 @@ function Joystick:isVibrationSupported() end --- ---Sets the vibration motor speeds on a Joystick with rumble support. Most common gamepads have this functionality, although not all drivers give proper support. Use Joystick:isVibrationSupported to check. --- ----@overload fun():boolean ----@overload fun(left: number, right: number, duration: number):boolean +---@overload fun(self: love.Joystick):boolean +---@overload fun(self: love.Joystick, left: number, right: number, duration: number):boolean ---@param left number # Strength of the left vibration motor on the Joystick. Must be in the range of 1. ---@param right number # Strength of the right vibration motor on the Joystick. Must be in the range of 1. ---@return boolean success # True if the vibration was successfully applied, false if not. |