diff options
author | UbitUmarov | 2017-06-03 04:28:43 +0100 |
---|---|---|
committer | UbitUmarov | 2017-06-03 04:28:43 +0100 |
commit | 67e540e05c34667b771fb5d95e4d7bdc0dfce24d (patch) | |
tree | fc22340e9872221198d4e6bdcdf021e0e59b4889 /OpenSim/Region | |
parent | fix MouseDown in case it gets any use (diff) | |
download | opensim-SC_OLD-67e540e05c34667b771fb5d95e4d7bdc0dfce24d.zip opensim-SC_OLD-67e540e05c34667b771fb5d95e4d7bdc0dfce24d.tar.gz opensim-SC_OLD-67e540e05c34667b771fb5d95e4d7bdc0dfce24d.tar.bz2 opensim-SC_OLD-67e540e05c34667b771fb5d95e4d7bdc0dfce24d.tar.xz |
cross mouse buttons state
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 7a14f2a..cec21d8 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -4668,6 +4668,11 @@ namespace OpenSim.Region.Framework.Scenes | |||
4668 | { | 4668 | { |
4669 | cAgent.CrossingFlags = crossingFlags; | 4669 | cAgent.CrossingFlags = crossingFlags; |
4670 | cAgent.CrossingFlags |= 1; | 4670 | cAgent.CrossingFlags |= 1; |
4671 | cAgent.CrossExtraFlags = 0; | ||
4672 | if((LastCommands & ScriptControlled.CONTROL_LBUTTON) != 0) | ||
4673 | cAgent.CrossExtraFlags |= 1; | ||
4674 | if((LastCommands & ScriptControlled.CONTROL_ML_LBUTTON) != 0) | ||
4675 | cAgent.CrossExtraFlags |= 2; | ||
4671 | } | 4676 | } |
4672 | else | 4677 | else |
4673 | cAgent.CrossingFlags = 0; | 4678 | cAgent.CrossingFlags = 0; |
@@ -4782,6 +4787,15 @@ namespace OpenSim.Region.Framework.Scenes | |||
4782 | 4787 | ||
4783 | crossingFlags = cAgent.CrossingFlags; | 4788 | crossingFlags = cAgent.CrossingFlags; |
4784 | gotCrossUpdate = (crossingFlags != 0); | 4789 | gotCrossUpdate = (crossingFlags != 0); |
4790 | if(gotCrossUpdate) | ||
4791 | { | ||
4792 | LastCommands &= ~(ScriptControlled.CONTROL_LBUTTON | ScriptControlled.CONTROL_ML_LBUTTON); | ||
4793 | if((cAgent.CrossExtraFlags & 1) != 0) | ||
4794 | LastCommands |= ScriptControlled.CONTROL_LBUTTON; | ||
4795 | if((cAgent.CrossExtraFlags & 2) != 0) | ||
4796 | LastCommands |= ScriptControlled.CONTROL_ML_LBUTTON; | ||
4797 | MouseDown = (cAgent.CrossExtraFlags & 3) != 0; | ||
4798 | } | ||
4785 | 4799 | ||
4786 | haveGroupInformation = false; | 4800 | haveGroupInformation = false; |
4787 | // using this as protocol detection don't want to mess with the numbers for now | 4801 | // using this as protocol detection don't want to mess with the numbers for now |