| 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 |
nothing calls this directly
no test coverage detected