Construct 3 icon

Construct 3

Documentation

Keyboard script interface

Ashley's avatar
Medal
Construct Team Founder
Published 3 Jun, 2019
97 words
<1 min

The IKeyboardObjectType interface derives from IObjectClass to add APIs specific to the Keyboard plugin.

Note this class derives from the object class interface, not the instance interface. Typically it is used through runtime.keyboard instead of the named object.

Keyboard APIs

isKeyDown(keyOrCode)

Return a boolean indicating if the specified keyboard key is currently being held down. The key can be specified either by its numeric code, or a string of its key (see also pre-defined key values).