.. _program_listing_file_include_judge_PDJE_Rule.hpp: Program Listing for File PDJE_Rule.hpp ====================================== |exhale_lsh| :ref:`Return to documentation for file ` (``include\judge\PDJE_Rule.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #pragma once #include "Input_State.hpp" #include "PDJE_EXPORT_SETTER.hpp" #include "PDJE_Input_Device_Data.hpp" #include #include #include #include #include #include namespace PDJE_JUDGE { enum DEVICE_MOUSE_EVENT { PDJE_BTN_EX = 0, PDJE_BTN_SIDE = 1, PDJE_BTN_M, PDJE_BTN_R, PDJE_BTN_L, PDJE_WHEEL_X, PDJE_WHEEL_Y, PDJE_AXIS_MOVE }; struct PDJE_API EVENT_RULE { uint64_t miss_range_microsecond = 0; uint64_t use_range_microsecond = 0; }; namespace RAIL_KEY { struct PDJE_API KB_MOUSE { std::string Device_Name = ""; BITMASK DeviceKey = 0; bool operator==(const KB_MOUSE &other) const noexcept { return Device_Name == other.Device_Name && DeviceKey == other.DeviceKey; } }; struct PDJE_API MIDI { std::string port_name = ""; uint8_t type = 0; uint8_t ch = 0; uint8_t pos = 0; bool operator==(const MIDI &other) const noexcept { return port_name == other.port_name && type == other.type && ch == other.ch && pos == other.pos; } }; struct PDJE_API META { std::variant type; std::variant key; }; }; // namespace RAIL_KEY }; // namespace PDJE_JUDGE