MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / getAxisPosition

Method getAxisPosition

src/Core/Input/InputButton.cpp:100–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98 }
99
100 float InputButton::getAxisPosition()
101 {
102 if (m_type == InputType::GamepadAxis)
103 return sf::Joystick::getAxisPosition(
104 m_gamepadIndex, std::get<sf::Joystick::Axis>(m_button));
105 else
106 throw Exceptions::InputButtonInvalidOperation(
107 inputTypeToString(m_type), "GetAxisPosition", EXC_INFO);
108 }
109} // namespace obe::Input

Callers

nothing calls this directly

Calls 2

inputTypeToStringFunction · 0.85

Tested by

no test coverage detected