| 34 | static constexpr InputCode GamepadPov(int pov) { return InputCode(static_cast<uint32_t>(InputDevice::GamepadPOV) | static_cast<uint32_t>(pov)); } |
| 35 | |
| 36 | static constexpr InputCode FromLegacy(int packed) { return InputCode(static_cast<uint32_t>(packed)); } |
| 37 | |
| 38 | constexpr InputDevice device() const { return static_cast<InputDevice>(raw & INPUT_CODE_DEVICE_MASK); } |
| 39 | constexpr uint32_t code() const { return raw & INPUT_CODE_VALUE_MASK; } |