• All submissions to this site are governed by Second Life Project Contribution Agreement. By submitting patches and other information using this site, you acknowledge that you have read, understood, and agreed to those terms.
Issue Details (XML | Word | Printable)

Key: SVC-1336
Type: Bug Bug
Status: Resolved Resolved
Resolution: Duplicate
Priority: Normal Normal
Assignee: Unassigned
Reporter: mike westerburg
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
2. Second Life Service - SVC

Mono Beta: Control inputs not acting properly

Created: 29/Jan/08 09:09 PM   Updated: 03/Feb/08 05:42 PM
Return to search
Component/s: Scripts
Affects Version/s: Mono Beta
Fix Version/s: None

Environment:
You are at 255534.4, 255324.5, 24.4 in Sandbox Goguen MONO located at sim3000.aditi.lindenlab.com (8.2.33.226:13005)
Mono 1.18.6.77968

CPU: Intel Pentium 4 Northwood (2405 MHz)
Memory: 1024 MB
OS Version: Microsoft Windows XP (Build 2600)
Graphics Card Vendor: NVIDIA Corporation
Graphics Card: GeForce 6200/PCI/SSE2
OpenGL Version: 2.1.2
LLMozLib Version: 1.1.0 (Mozilla GRE:1.8.0.12_0000000000)
Packets Lost: 32/41985 (0.1%)
Viewer Digest: 3bb91f71-43e8-7bd9-be82-8ffb1b7bdf10
Issue Links:
Relates


 Description  « Hide
In my vehicle script, I have the left mouse button mapped to a specific vehicle capability. When the mouse button is held down, the vehicle will rotate along the Z axis, when the mouse button is released, the vehicle is supposed to return back to it's default banking behavior.

This is a snippet of the code :

if((level & CONTROL_ML_LBUTTON) && (edge & CONTROL_ML_LBUTTON))

{ tail_rotor_lock=TRUE; }

else if(!(level & CONTROL_ML_LBUTTON) && (edge & CONTROL_ML_LBUTTON))
{ tail_rotor_lock=FALSE; }

if((level & CONTROL_LBUTTON) && (edge & CONTROL_LBUTTON))
{ tail_rotor_lock=TRUE; }

else if(!(level & CONTROL_LBUTTON) && (edge & CONTROL_LBUTTON))
{ tail_rotor_lock=FALSE; } }

The system does not seem to be detecting the release of the mouse button. Unchecked the MONO box to compile on the older LSL VM and worked perfectly as it was intended. It does not appear to be the basic boolean as it does the detect of the mouse button being pressed ok, it appears only when the mouse button is let go. I added a basic llWhisper() to each of the events to verify, functioning as described, the script is detecting the press but not the release of the mouse button.

Snippet of the modified code:
if((level & CONTROL_ML_LBUTTON) && (edge & CONTROL_ML_LBUTTON))

{ tail_rotor_lock=TRUE; llWhisper(0,"pressed mouse button!"); }

else if(!(level & CONTROL_ML_LBUTTON) && (edge & CONTROL_ML_LBUTTON))
{ tail_rotor_lock=FALSE; llWhisper(0,"Let Go mouse button!"); }

if((level & CONTROL_LBUTTON) && (edge & CONTROL_LBUTTON))
{ tail_rotor_lock=TRUE; llWhisper(0,"pressed mouse button!"); }

else if(!(level & CONTROL_LBUTTON) && (edge & CONTROL_LBUTTON))
{ tail_rotor_lock=FALSE; llWhisper(0,"Let Go mouse button!"); } }

The only whispers I receive are the ones to alert of the pressing of the mouse button.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Gellan Glenelg added a comment - 30/Jan/08 11:54 AM
I believe this is a problem with the && operator (SVC-1342), rather than incorrect values being returned to the control event.