Keyboard.isPressed

Returns if the given Keyboard.Code is pressed.

interface Keyboard
@nogc static
bool
isPressed
nothrow

Examples

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

Meta