kbhit

Checks if any key is pressed.

Shift, Ctrl and Alt keys are not detected.

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

Return Value

Type: bool

True if any key is pressed, false otherwise.

Meta