-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathkeyboard.lua
More file actions
36 lines (30 loc) · 1.19 KB
/
Copy pathkeyboard.lua
File metadata and controls
36 lines (30 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
-- Provides an interface to the user's keyboard.
--
-- @module keyboard
--
---
-- Returns the delay and interval of key repeating.
-- @function [parent = #keyboard] getKeyRepeat
-- @return #number delay The amount of time before repeating the key (in seconds)
-- @return #number interval The amount of time between repeats (in seconds)
---
-- Checks whether a certain key is down. Not to be confused with love.keypressed or
-- love.keyreleased.
-- @function [parent = #keyboard] isDown
-- @param key The key to check.
-- @return #boolean down True if the key is down, false if not.
---
-- Checks whether a certain key is down. Not to be confused with love.keypressed or
-- love.keyreleased.
-- @function [parent = #keyboard] isDown
-- @param key1 A key to check.
-- @param key2 A key to check.
-- @param ... Additional key(s) to check.
-- @return #boolean anyDown True if any supplied key is down, false if not.
---
-- Enables key repeating and sets the delay and interval.
-- @function [parent = #keyboard] setKeyRepeat
-- @param #number delay The amount of time before repeating the key (in seconds). 0 disables key repeat.
-- @param #number interval The amount of time between repeats (in seconds)
return nil