Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
#ifndef KeyboardKeyState_h
#define KeyboardKeyState_h
#include <cstdint>
/**
* @file KeyboardKeyState.hpp
* @brief Defines the KeyboardKeyState enum for indicating the low-level state of a keyboard key.
*/
namespace Driver
{
/**
* @enum KeyboardKeyState
* @brief Represents the low-level state of a keyboard key.
*
* The KeyboardKeyState enum is used to indicate whether a keyboard key is pressed or not
* at a low level. This enum does not handle more complex states, such as distinguishing
* between long or short presses, nor does it handle debouncing. Higher-level classes in
* the Device namespace are responsible for implementing these additional behaviors.
*/
enum class KeyboardKeyState : std::uint8_t
{
Pressed = 1u, /**< The key is currently pressed. */
NotPressed = 2u, /**< The key is currently not pressed. */
DriverNotOperational = 3, /**< The key cannot be checked, driver is not in not running. */
UnknownKeyAsked = 4 /**< The key doesn't exists. */
};
}
#endif
693a2df9fThis file is pinned to the selected release. Download the original to open it in your design tool.