| 95 | } |
| 96 | |
| 97 | void FPSCamera::onGUI(const std::string& suffix) { |
| 98 | if(ImGui::Begin(suffix.c_str())) { |
| 99 | ImGui::PushScaledItemWidth(130); |
| 100 | ImGui::Checkbox("Acceleration", &_useAcceleration); |
| 101 | ImGui::SameLine(); |
| 102 | if(!_useAcceleration) { |
| 103 | ImGui::InputFloat("Speed", &_speedFpsCam, 0.1f, 0.5f); |
| 104 | ImGui::SameLine(); |
| 105 | } |
| 106 | ImGui::InputFloat("Rot. speed", &_speedRotFpsCam, 0.1f, 0.5f); |
| 107 | ImGui::PopItemWidth(); |
| 108 | } |
| 109 | ImGui::End(); |
| 110 | } |
| 111 | |
| 112 | |
| 113 | void FPSCamera::moveUsingWASD(const sibr::Input& input, float deltaTime) |
nothing calls this directly
no test coverage detected