get_key_pressed
Returns the most recent pressed key for the current frame.
Signature
get_key_pressed
Returns the most recent pressed key for the current frame.Signature
get_key_pressed() -> str | NoneParameters
| Name | Type | Default | Description |
|---|
Returns
str | NoneExample
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_pressedis_key_released
Return to the input overview or continue with the quickstart.