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/XEngine/EventManager.cs | |
parent | Fixed Mantis #2756 (diff) | |
download | opensim-SC_OLD-7ae9ec217d6e1ec039fbd6ed16c952d56cc63dc6.zip opensim-SC_OLD-7ae9ec217d6e1ec039fbd6ed16c952d56cc63dc6.tar.gz opensim-SC_OLD-7ae9ec217d6e1ec039fbd6ed16c952d56cc63dc6.tar.bz2 opensim-SC_OLD-7ae9ec217d6e1ec039fbd6ed16c952d56cc63dc6.tar.xz |
Implementation of the llDetectedTouch* functions
Diffstat (limited to 'OpenSim/Region/ScriptEngine/XEngine/EventManager.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/XEngine/EventManager.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs b/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs index 9ed2fbb..67ac0ce 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs | |||
@@ -80,7 +80,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
80 | } | 80 | } |
81 | 81 | ||
82 | public void touch_start(uint localID, uint originalID, Vector3 offsetPos, | 82 | public void touch_start(uint localID, uint originalID, Vector3 offsetPos, |
83 | IClientAPI remoteClient) | 83 | IClientAPI remoteClient, SurfaceTouchEventArgs surfaceArgs) |
84 | { | 84 | { |
85 | // Add to queue for all scripts in ObjectID object | 85 | // Add to queue for all scripts in ObjectID object |
86 | DetectParams[] det = new DetectParams[1]; | 86 | DetectParams[] det = new DetectParams[1]; |
@@ -102,6 +102,11 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
102 | det[0].LinkNum = originalPart.LinkNum; | 102 | det[0].LinkNum = originalPart.LinkNum; |
103 | } | 103 | } |
104 | 104 | ||
105 | if (surfaceArgs != null) | ||
106 | { | ||
107 | det[0].SurfaceTouchArgs = surfaceArgs; | ||
108 | } | ||
109 | |||
105 | myScriptEngine.PostObjectEvent(localID, new EventParams( | 110 | myScriptEngine.PostObjectEvent(localID, new EventParams( |
106 | "touch_start", new Object[] { new LSL_Types.LSLInteger(1) }, | 111 | "touch_start", new Object[] { new LSL_Types.LSLInteger(1) }, |
107 | det)); | 112 | det)); |