View on GitHub

ECoS-Documentation

Input API

In the following functions, key must be one of the strings:

KEY (key)

Returns whether the key key is currently being held down.

KEYN (key)

Returns whether the key key was pressed since the last frame.

IKEY (key)

Integer version of KEY; returns 1 if the key is held, 0 otherwise.

IKEYN (key)

Integer version of KEYN; returns 1 if the key was pressed since last frame, 0 otherwise.