mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 03:39:14 +00:00
25 lines
419 B
C++
25 lines
419 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()
|
|
: mFastModeFactor(1)
|
|
{
|
|
}
|
|
|
|
CSVRender::Navigation::~Navigation() {}
|
|
|
|
void CSVRender::Navigation::setFastModeFactor (float factor)
|
|
{
|
|
mFastModeFactor = factor;
|
|
}
|