kbhit

Checks if anykey is pressed.

Shift, Ctrl and Alt keys are not detected.

  1. bool kbhit()
  2. bool kbhit()
    version(Posix)
    bool
    kbhit
    (
    )

Return Value

Type: bool

True if anykey is pressed, false otherwise.

Meta