mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-10 06:39:49 +00:00
19 lines
352 B
C++
19 lines
352 B
C++
|
|
#include "navigation.hpp"
|
|
|
|
float CSVRender::Navigation::getFactor (bool mouse) const
|
|
{
|
|
float factor = mFastModeFactor;
|
|
|
|
if (mouse)
|
|
factor /= 2; /// \todo make this configurable
|
|
|
|
return factor;
|
|
}
|
|
|
|
CSVRender::Navigation::~Navigation() {}
|
|
|
|
void CSVRender::Navigation::setFastModeFactor (float factor)
|
|
{
|
|
mFastModeFactor = factor;
|
|
} |