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

Method GetCursorRelMode

engine/Poseidon/World/Simulation/Simul.cpp:1127–1135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1125void Object::SimulateHUD(CameraType camType, float deltaT) {}
1126
1127CursorMode Object::GetCursorRelMode(CameraType camType) const
1128{
1129 auto& input = InputSubsystem::Instance();
1130 if (IsVirtual(camType) && !input.IsLookAroundEnabled() && !input.IsMouseTurnActive())
1131 {
1132 return CKeyboard;
1133 }
1134 return CMouseAbs;
1135}
1136
1137void Object::LimitVirtual(CameraType camType, float& heading, float& dive, float& fov) const
1138{

Callers 1

SimulateMethod · 0.45

Calls 2

IsLookAroundEnabledMethod · 0.80
IsMouseTurnActiveMethod · 0.80

Tested by

no test coverage detected