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

Method GamepadAx

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

Source from the content-addressed store, hash-verified

31 static constexpr InputCode MouseButton(int btn) { return InputCode(static_cast<uint32_t>(InputDevice::Mouse) | static_cast<uint32_t>(btn)); }
32 static constexpr InputCode GamepadBtn(int btn) { return InputCode(static_cast<uint32_t>(InputDevice::GamepadButton) | static_cast<uint32_t>(btn)); }
33 static constexpr InputCode GamepadAx(int axis) { return InputCode(static_cast<uint32_t>(InputDevice::GamepadAxis) | static_cast<uint32_t>(axis)); }
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)); }

Callers

nothing calls this directly

Calls 1

InputCodeClass · 0.85

Tested by

no test coverage detected