Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Extended Mouse Click Functionality

Feynt Mistral
Registered User
Join date: 24 Sep 2005
Posts: 551
03-10-2006 12:10
Currently when you click out of mouselook mode you can only capture the mouse click action. However I'd like an extension of this to somehow return the position at which you clicked. This would make things like targeted out of mouselook spells and weapons possible. The ability to capture other mouse buttons as well would be nice, such as right mouse button (or alternate methods of mouse clicking in the case of Macs, option-click), for additional effects. Sometimes you just shouldn't be right clicking stuff, like in the middle of a battlefield.
_____________________
I dream of a better tomorrow in SL!
You should too. Visit, vote, voice opinions.
Support CSG! Tell LL how much it would mean to subtract one prim from another!
Prim Animation! Stop by and say something about it, show your support!
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
03-10-2006 13:31
Currently, when you click out of mouselook mode you can't capture anything at all. The object you clicked on can, but you can't.
Feynt Mistral
Registered User
Join date: 24 Sep 2005
Posts: 551
03-11-2006 22:17
Not true, you can capture the action of clicking the left mouse button. But it's like capturing any other input, there's no data related to it besides a state change and which button/keys are being held.
_____________________
I dream of a better tomorrow in SL!
You should too. Visit, vote, voice opinions.
Support CSG! Tell LL how much it would mean to subtract one prim from another!
Prim Animation! Stop by and say something about it, show your support!
Zepp Zaftig
Unregistered Abuser
Join date: 20 Mar 2005
Posts: 470
03-12-2006 05:47
So what you're suggesting is something like?

float llGetMouseCoordX()
float llGetMouseCoordY()

return value 0.0 - 1.0
Feynt Mistral
Registered User
Join date: 24 Sep 2005
Posts: 551
03-12-2006 14:01
I'm proposing:
vector llGetClickCoords()

And if you don't click on anything (like the sky) it returns a zero vector. It's very unlikely that an avatar or object could be placed at <0,0,0> in a sim (though it has been known to happen. With objects anyways).
_____________________
I dream of a better tomorrow in SL!
You should too. Visit, vote, voice opinions.
Support CSG! Tell LL how much it would mean to subtract one prim from another!
Prim Animation! Stop by and say something about it, show your support!
Zepp Zaftig
Unregistered Abuser
Join date: 20 Mar 2005
Posts: 470
03-12-2006 15:01
From: Feynt Mistral
I'm proposing:
vector llGetClickCoords()

And if you don't click on anything (like the sky) it returns a zero vector. It's very unlikely that an avatar or object could be placed at <0,0,0> in a sim (though it has been known to happen. With objects anyways).


That sounds useful. Something similar has been proposed before, but that has been about detecting the face or coordinates on a prim with a script in. If I understand your suggestion correctly, you are suggesting the same except that it would be an attachment or object that would detect where you click when you click on another object or avatar. I can see that being useful not only in mouselook mode.