isPressed

fnbool isPressed(char key) @safe @trusted nothrow @nogc

Returns true if the specified character was pressed this frame.

fnbool isPressed(IStr keys) @safe @trusted nothrow @nogc

Returns true if one of the specified characters was pressed this frame.

fnbool isPressed(const(Keyboard) key1, const(Keyboard)[] keys...) @safe @trusted nothrow @nogc

Returns true if one of the specified keyboard keys was pressed this frame.

fnbool isPressed(Mouse key) @safe @trusted nothrow @nogc

Returns true if the specified mouse button was pressed this frame.

fnbool isPressed(Gamepad key, int id = 0) @safe @trusted nothrow @nogc

Returns true if the specified gamepad button was pressed this frame.

fnbool isPressed(InputBinding binding) @safe @trusted nothrow @nogc

Returns true if any of the keyboard keys or the gamepad button in the specified binding was pressed this frame.