MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / FromLegacy

Method FromLegacy

engine/Poseidon/Input/InputCode.hpp:36–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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; }

Callers

nothing calls this directly

Calls 1

InputCodeClass · 0.85

Tested by

no test coverage detected