From 7801b00a804bcd68aacda265afdf4d774486b4e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 20 Jul 2021 19:36:35 +0800 Subject: update --- meta/3rd/love2d/library/love.keyboard.lua | 2 ++ 1 file changed, 2 insertions(+) (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 a7d7cb57..cbe7e137 100644 --- a/meta/3rd/love2d/library/love.keyboard.lua +++ b/meta/3rd/love2d/library/love.keyboard.lua @@ -49,6 +49,7 @@ function love.keyboard.hasTextInput() end --- ---Checks whether a certain key is down. Not to be confused with love.keypressed or love.keyreleased. --- +---@overload fun(key: love.KeyConstant, ...: love.KeyConstant):boolean ---@param key love.KeyConstant # The key to check. ---@return boolean down # True if the key is down, false if not. function love.keyboard.isDown(key) end @@ -73,6 +74,7 @@ function love.keyboard.setKeyRepeat(enable) end --- ---On touch devices, this shows the system's native on-screen keyboard when it's enabled. --- +---@overload fun(enable: boolean, x: number, y: number, w: number, h: number) ---@param enable boolean # Whether text input events should be enabled. function love.keyboard.setTextInput(enable) end -- cgit v1.2.3