diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-07-20 19:36:35 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-07-20 19:36:35 +0800 |
commit | 7801b00a804bcd68aacda265afdf4d774486b4e9 (patch) | |
tree | dc73791db11a7c49f2eb25f9141d1497b6e1e7e3 /meta/3rd/love2d/library/love.keyboard.lua | |
parent | da6942640931afd8f39db0fc84e8e0394f95d9b1 (diff) | |
download | lua-language-server-7801b00a804bcd68aacda265afdf4d774486b4e9.zip |
update
Diffstat (limited to 'meta/3rd/love2d/library/love.keyboard.lua')
-rw-r--r-- | meta/3rd/love2d/library/love.keyboard.lua | 2 |
1 files changed, 2 insertions, 0 deletions
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 |