You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JoeStrout edited this page Oct 23, 2026
·
4 revisions
Check if key has been pressed once
Parameters
Parameter
Default Value
Note
key
Return value
Condition
Return Value
(always)
number
Notes
A key counts as "pressed" until the next EndDrawing. On the web, a check placed between EndDrawing and yield never sees the key, so yield right after EndDrawing. See The Main Loop.