Updated doc/api.md for keyboard changes
This commit is contained in:
16
doc/api.md
16
doc/api.md
@@ -176,8 +176,8 @@ callbacks are called.
|
|||||||
|
|
||||||
|
|
||||||
### love.keyboard
|
### love.keyboard
|
||||||
##### love.keyboard.isDown(code)
|
##### love.keyboard.isDown(key, ...)
|
||||||
Returns true if the key of the given scancode is currently down.
|
Returns true if any of the given keys are currently pressed.
|
||||||
|
|
||||||
|
|
||||||
### love.mouse
|
### love.mouse
|
||||||
@@ -258,13 +258,13 @@ take place.
|
|||||||
Called when the frame is ready to be drawn. All your draw calls should take
|
Called when the frame is ready to be drawn. All your draw calls should take
|
||||||
place in this function.
|
place in this function.
|
||||||
|
|
||||||
##### love.keypressed(code)
|
##### love.keypressed(key, code)
|
||||||
Called when the user presses a key. `code` is the scancode value for the
|
Called when the user presses a key. `key` is the key that was pressed, `code` is
|
||||||
pressed key.
|
the raw integer scancode value for the pressed key.
|
||||||
|
|
||||||
##### love.keyreleased(code)
|
##### love.keyreleased(key, code)
|
||||||
Called when the user releases a key. `code` is the scancode value for the
|
Called when the user releases a key. `key` is the key that was released, `code`
|
||||||
released key.
|
is the raw integer scancode value for the released key.
|
||||||
|
|
||||||
##### love.mousemoved(x, y, dx, dy)
|
##### love.mousemoved(x, y, dx, dy)
|
||||||
Called when the user moves the mouse. `x` and `y` are the mouse's current
|
Called when the user moves the mouse. `x` and `y` are the mouse's current
|
||||||
|
|||||||
Reference in New Issue
Block a user