is_key_pressed
Returns true for the frame a key is pressed.
Signature
is_key_pressed
Returns true for the frame a key is pressed.Signature
is_key_pressed(key: str) -> boolParameters
| Name | Type | Default | Description |
|---|---|---|---|
key | str | None | key argument for this API call. |
Returns
boolExample
from conjure import *
init_window(360, 640, "API")
while not window_should_close():
begin_drawing()
clear_background(WHITE)
draw_text("Moosh", 120, 300, 28, BLACK)
end_drawing()See also
is_key_downis_key_releasedis_key_up
Return to the input overview or continue with the quickstart.