forked from teamnwah/openmw-tes3coop
Normalize default camera controls so that is appears as if the camera is
the object being moved. Also, allow mouse inversion for secondary movement.
This commit is contained in:
parent
fbe9177f5d
commit
35ff4ec4b1
2 changed files with 3 additions and 3 deletions
|
@ -172,8 +172,8 @@ void CSMPrefs::State::declare()
|
|||
inputButtons.add (left).add (cLeft).add (right).add (cRight).add (middle).add (cMiddle);
|
||||
declareEnum ("p-navi", "Primary Camera Navigation Button", left).addValues (inputButtons);
|
||||
declareEnum ("s-navi", "Secondary Camera Navigation Button", cLeft).addValues (inputButtons);
|
||||
declareDouble ("p-navi-sensitivity", "Camera Sensitivity", -1/750.).setRange(-2.0, 2.0);
|
||||
declareDouble ("s-navi-sensitivity", "Secondary Camera Movement Sensitivity", 50.0).setRange(1.0, 1000.0);
|
||||
declareDouble ("p-navi-sensitivity", "Camera Sensitivity", 1/650.).setRange(-2.0, 2.0);
|
||||
declareDouble ("s-navi-sensitivity", "Secondary Camera Movement Sensitivity", 50.0).setRange(-1000.0, 1000.0);
|
||||
declareDouble ("navi-wheel-factor", "Camera Zoom Sensitivity", 8).setRange(-100.0, 100.0);
|
||||
declareDouble ("navi-free-lin-speed", "Free Camera Linear Speed", 1000.0).setRange(1.0, 10000.0);
|
||||
declareDouble ("navi-free-rot-speed", "Free Camera Rotational Speed", 3.14 / 2).setRange(0.001, 6.28);
|
||||
|
|
|
@ -27,7 +27,7 @@ namespace CSVRender
|
|||
CameraController::CameraController()
|
||||
: mActive(false)
|
||||
, mModified(false)
|
||||
, mCameraSensitivity(-1/700.f)
|
||||
, mCameraSensitivity(1/650.f)
|
||||
, mSecondaryMoveMult(50)
|
||||
, mWheelMoveMult(8)
|
||||
, mCamera(NULL)
|
||||
|
|
Loading…
Reference in a new issue