diff options
author | idb | 2008-12-05 16:48:47 +0000 |
---|---|---|
committer | idb | 2008-12-05 16:48:47 +0000 |
commit | 7ae9ec217d6e1ec039fbd6ed16c952d56cc63dc6 (patch) | |
tree | 6fed56271b075ef0c9c42e3cc899e86e54ea4c25 /OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs | |
parent | Fixed Mantis #2756 (diff) | |
download | opensim-SC-7ae9ec217d6e1ec039fbd6ed16c952d56cc63dc6.zip opensim-SC-7ae9ec217d6e1ec039fbd6ed16c952d56cc63dc6.tar.gz opensim-SC-7ae9ec217d6e1ec039fbd6ed16c952d56cc63dc6.tar.bz2 opensim-SC-7ae9ec217d6e1ec039fbd6ed16c952d56cc63dc6.tar.xz |
Implementation of the llDetectedTouch* functions
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs index 72766a4..09dbc40 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs | |||
@@ -141,7 +141,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine | |||
141 | } | 141 | } |
142 | 142 | ||
143 | public void touch_start(uint localID, uint originalID, | 143 | public void touch_start(uint localID, uint originalID, |
144 | Vector3 offsetPos, IClientAPI remoteClient) | 144 | Vector3 offsetPos, IClientAPI remoteClient, SurfaceTouchEventArgs surfaceArgs) |
145 | { | 145 | { |
146 | // Add to queue for all scripts in ObjectID object | 146 | // Add to queue for all scripts in ObjectID object |
147 | DetectParams[] det = new DetectParams[1]; | 147 | DetectParams[] det = new DetectParams[1]; |
@@ -165,6 +165,10 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine | |||
165 | myScriptEngine.World.GetSceneObjectPart(originalID); | 165 | myScriptEngine.World.GetSceneObjectPart(originalID); |
166 | det[0].LinkNum = originalPart.LinkNum; | 166 | det[0].LinkNum = originalPart.LinkNum; |
167 | } | 167 | } |
168 | if (surfaceArgs != null) | ||
169 | { | ||
170 | det[0].SurfaceTouchArgs = surfaceArgs; | ||
171 | } | ||
168 | 172 | ||
169 | myScriptEngine.PostObjectEvent(localID, new EventParams( | 173 | myScriptEngine.PostObjectEvent(localID, new EventParams( |
170 | "touch_start", new Object[] { new LSL_Types.LSLInteger(1) }, | 174 | "touch_start", new Object[] { new LSL_Types.LSLInteger(1) }, |