| 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; } |
| 40 | constexpr int toLegacy() const { return static_cast<int>(raw); } |
| 41 | constexpr bool valid() const { return raw != 0; } |
| 42 | |
| 43 | constexpr bool operator==(InputCode other) const { return raw == other.raw; } |
no outgoing calls