mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-03 21:45:33 +00:00
Increase the sensitivity of the wheel movement.
This commit is contained in:
parent
48ecea7103
commit
1504119da7
1 changed files with 5 additions and 4 deletions
|
@ -233,9 +233,9 @@ namespace CSVRender
|
||||||
|
|
||||||
if(QString(referenceId.c_str()).contains(QRegExp("^Pathgrid")))
|
if(QString(referenceId.c_str()).contains(QRegExp("^Pathgrid")))
|
||||||
{
|
{
|
||||||
// move pathgrid point, but don't save yet (need pathgrid
|
// FIXME: move pathgrid point, but don't save yet (need pathgrid
|
||||||
// table feature & its data structure to be completed)
|
// table feature & its data structure to be completed)
|
||||||
// FIXME: need to signal PathgridPoint object of change
|
// Also need to signal PathgridPoint object of change
|
||||||
std::pair<std::string, Ogre::Vector3> result =
|
std::pair<std::string, Ogre::Vector3> result =
|
||||||
anyUnderCursor(event->x(), event->y());
|
anyUnderCursor(event->x(), event->y());
|
||||||
std::string refId = mPhysics->sceneNodeToRefId(result.first);
|
std::string refId = mPhysics->sceneNodeToRefId(result.first);
|
||||||
|
@ -256,7 +256,7 @@ namespace CSVRender
|
||||||
mParent->pathgridMoved(referenceId, pos); // result.second
|
mParent->pathgridMoved(referenceId, pos); // result.second
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
cancelDrag();
|
cancelDrag(); // FIXME: does not allow editing if terrain not visible
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -331,8 +331,9 @@ namespace CSVRender
|
||||||
// The object position is usually a little away from the mount point.
|
// The object position is usually a little away from the mount point.
|
||||||
|
|
||||||
// Get the new world position of mouse on the plane offset from the wheel
|
// Get the new world position of mouse on the plane offset from the wheel
|
||||||
|
// FIXME: make the sensitivity a user setting and/or allow modifiers
|
||||||
std::pair<Ogre::Vector3, Ogre::Vector3> planeRes = planeAxis();
|
std::pair<Ogre::Vector3, Ogre::Vector3> planeRes = planeAxis();
|
||||||
Ogre::Vector3 mousePos = mOldMousePos + planeRes.first*(event->delta()/2);
|
Ogre::Vector3 mousePos = mOldMousePos + planeRes.first*(event->delta()/1.5);
|
||||||
|
|
||||||
// Move the movement plane to the new mouse position. The plane is created on
|
// Move the movement plane to the new mouse position. The plane is created on
|
||||||
// the mouse point (i.e. not the object position)
|
// the mouse point (i.e. not the object position)
|
||||||
|
|
Loading…
Reference in a new issue