APIInputget_key_pressed

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 | None

Parameters

NameTypeDefaultDescription

Returns

str | None

Example

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_down
  • is_key_pressed
  • is_key_released

Return to the input overview or continue with the quickstart.