Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
/**
* @file KeyAction.cppm
* @brief Defines the KeyAction enum for key press actions.
*
* This file contains the definition of the KeyAction enum, which represents
* various actions or outcomes related to key presses on a keyboard.
*/
module;
#include <cstdint>
export module Device.KeyAction;
export namespace Device
{
/**
* @enum KeyAction
* @brief Represents different actions or outcomes related to key presses.
*
* The KeyAction enum is used to describe the state of a key press on a keyboard.
* It provides different states to represent the start of a press, holding, the end of
* a short or long press, and other relevant states.
*/
enum class KeyAction : std::uint8_t
{
PRESS_NOT = 0U, /**< The key is in a fail mode, indicating an error or invalid state. */
PRESS_START = 1U, /**< The user started pressing the key. */
PRESS_HOLD = 2U, /**< The key is being held down. */
PRESS_END_SHORT = 3U, /**< The press has ended and is considered a short-duration press. */
PRESS_END_LONG = 4U, /**< The press has ended and is considered a long-duration press. */
FAIL = 5U /**< The key is not currently pressed. */
};
} // namespace Deviced4cbf8c64This file is pinned to the selected release. Download the original to open it in your design tool.