isPressed

fnbool isPressed(char key)

Returns true if the specified character was pressed this frame.

fnbool isPressed(Keyboard key)

Returns true if the specified keyboard key was pressed this frame.

fnbool isPressed(Mouse key)

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

fnbool isPressed(Gamepad key, int id = 0)

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