Keyboard.isPressed

Returns if the given Keyboard.Code is pressed.

interface Keyboard
@nogc static nothrow
bool
isPressed

Examples

if (Keyboard.isPressed(Keyboard.Code.Escape))
    writeln("escape is pressed.");

Meta