Skip to content
Kyuchumimo edited this page Jul 6, 2022 · 5 revisions

keyp

keyp [code [hold[NOT SUPPORTED] period[NOT SUPPORTED]] ] -> pressed

Parameters

  • code : the key code we want to check (1..65)
  • hold : time in ticks before autorepeat
  • period : time in ticks for autorepeat interval

Returns

  • pressed : key is pressed (True/False)

Description

This function returns True if the given key is pressed but wasn't pressed in the previous frame.

Clone this wiki locally