crogine/include/crogine/core/Keyboard.hpp
/*!
    \brief Returns the real time state of the keyboard
    \param scancode The SDL_Scancode of the key to test
    \returns true if the key is pressed else false.
    */
\brief Returns the real time state of the keyboard
\param scancode The SDL_Scancode of the key to test
\returns true if the key is pressed else false.
\ brief Returns the real time state of the keyboard \ param scancode The SDL_Scancode of the key to test \ returns true if the key is pressed else false .
static inline bool isKeyPressed(SDL_Scancode scancode)
    {
        CRO_ASSERT(scancode > -1 && scancode < SDL_NUM_SCANCODES, "scancode out of range!");
        auto* state = SDL_GetKeyboardState(nullptr);
        return state[scancode] != 0;
    }
static inline bool isKeyPressed ( SDL_Scancode scancode ) { CRO_ASSERT ( scancode > -1 && scancode < SDL_NUM_SCANCODES , " " ) ; auto * state = SDL_GetKeyboardState ( nullptr ) ; return state [ scancode ] != 0 ; }
\brief Returns the real time state of the keyboard
\param scancode The SDL_Scancode of the key to test
\returns true if the key is pressed else false.
\ brief Returns the real time state of the keyboard \ param scancode The SDL_Scancode of the key to test \ returns true if the key is pressed else false .