Comment out now unused and not properly working private SP.m_leftButtonDown with a comment on how probably to implement it properly if it is needed in the future

inv-download
Justin Clark-Casey (justincc) 2015-02-27 23:48:05 +00:00
parent 30b786351e
commit 59d6d03909
1 changed files with 7 additions and 2 deletions

View File

@ -827,7 +827,7 @@ namespace OpenSim.Region.Framework.Scenes
}
private bool m_mouseLook;
private bool m_leftButtonDown;
// private bool m_leftButtonDown;
private bool m_inTransit;
@ -1961,7 +1961,12 @@ namespace OpenSim.Region.Framework.Scenes
// DrawDistance = Scene.DefaultDrawDistance;
m_mouseLook = (flags & AgentManager.ControlFlags.AGENT_CONTROL_MOUSELOOK) != 0;
m_leftButtonDown = (flags & AgentManager.ControlFlags.AGENT_CONTROL_LBUTTON_DOWN) != 0;
// FIXME: This does not work as intended because the viewer only sends the lbutton down when the button
// is first pressed, not whilst it is held down. If this is required in the future then need to look
// for an AGENT_CONTROL_LBUTTON_UP event and make sure to handle cases where an initial DOWN is not
// received (e.g. on holding LMB down on the avatar in a viewer).
// m_leftButtonDown = (flags & AgentManager.ControlFlags.AGENT_CONTROL_LBUTTON_DOWN) != 0;
#endregion Inputs