mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-10 15:39:02 +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;
|
||
|
}
|