|
|
|
@ -102,32 +102,32 @@ namespace MWInput
|
|
|
|
|
OMW::Engine& engine,
|
|
|
|
|
const std::string& userFile, bool userFileExists,
|
|
|
|
|
const std::string& controllerBindingsFile, bool grab)
|
|
|
|
|
: mOgre(ogre)
|
|
|
|
|
: mJoystickLastUsed(false)
|
|
|
|
|
, mOgre(ogre)
|
|
|
|
|
, mPlayer(NULL)
|
|
|
|
|
, mEngine(engine)
|
|
|
|
|
, mMouseLookEnabled(false)
|
|
|
|
|
, mMouseX(ogre.getWindow()->getWidth ()/2.f)
|
|
|
|
|
, mMouseY(ogre.getWindow()->getHeight ()/2.f)
|
|
|
|
|
, mMouseWheel(0)
|
|
|
|
|
, mDragDrop(false)
|
|
|
|
|
, mGuiCursorEnabled(true)
|
|
|
|
|
, mUserFile(userFile)
|
|
|
|
|
, mUserFileExists(userFileExists)
|
|
|
|
|
, mDragDrop(false)
|
|
|
|
|
, mGrabCursor (Settings::Manager::getBool("grab cursor", "Input"))
|
|
|
|
|
, mInvertY (Settings::Manager::getBool("invert y axis", "Input"))
|
|
|
|
|
, mControlsDisabled(false)
|
|
|
|
|
, mCameraSensitivity (Settings::Manager::getFloat("camera sensitivity", "Input"))
|
|
|
|
|
, mUISensitivity (Settings::Manager::getFloat("ui sensitivity", "Input"))
|
|
|
|
|
, mCameraYMultiplier (Settings::Manager::getFloat("camera y multiplier", "Input"))
|
|
|
|
|
, mGrabCursor (Settings::Manager::getBool("grab cursor", "Input"))
|
|
|
|
|
, mPreviewPOVDelay(0.f)
|
|
|
|
|
, mTimeIdle(0.f)
|
|
|
|
|
, mMouseLookEnabled(false)
|
|
|
|
|
, mGuiCursorEnabled(true)
|
|
|
|
|
, mDetectingKeyboard(false)
|
|
|
|
|
, mOverencumberedMessageDelay(0.f)
|
|
|
|
|
, mMouseX(ogre.getWindow()->getWidth ()/2.f)
|
|
|
|
|
, mMouseY(ogre.getWindow()->getHeight ()/2.f)
|
|
|
|
|
, mMouseWheel(0)
|
|
|
|
|
, mUserFileExists(userFileExists)
|
|
|
|
|
, mAlwaysRunActive(Settings::Manager::getBool("always run", "Input"))
|
|
|
|
|
, mSneakToggles(Settings::Manager::getBool("toggle sneak", "Input"))
|
|
|
|
|
, mSneaking(false)
|
|
|
|
|
, mAttemptJump(false)
|
|
|
|
|
, mControlsDisabled(false)
|
|
|
|
|
, mJoystickLastUsed(false)
|
|
|
|
|
, mDetectingKeyboard(false)
|
|
|
|
|
, mFakeDeviceID(1)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|