From 86d70a42239f6a3dcd6e638c53b805c5052bdc57 Mon Sep 17 00:00:00 2001 From: Sewbacca Date: Sun, 29 May 2022 20:26:25 +0200 Subject: Added vararg support --- meta/3rd/love2d/library/love.keyboard.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'meta/3rd/love2d/library/love.keyboard.lua') diff --git a/meta/3rd/love2d/library/love.keyboard.lua b/meta/3rd/love2d/library/love.keyboard.lua index 1f1a2ef5..2f68c50f 100644 --- a/meta/3rd/love2d/library/love.keyboard.lua +++ b/meta/3rd/love2d/library/love.keyboard.lua @@ -60,8 +60,9 @@ function love.keyboard.isDown(key) end ---Unlike regular KeyConstants, Scancodes are keyboard layout-independent. The scancode 'w' is used if the key in the same place as the 'w' key on an American keyboard is pressed, no matter what the key is labelled or what the user's operating system settings are. --- ---@param scancode love.Scancode # A Scancode to check. +---@vararg love.Scancode # Additional Scancodes to check. ---@return boolean down # True if any supplied Scancode is down, false if not. -function love.keyboard.isScancodeDown(scancode) end +function love.keyboard.isScancodeDown(scancode, ...) end --- ---Enables or disables key repeat for love.keypressed. It is disabled by default. -- cgit v1.2.3