Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Feature requests and bug reports
[BUG?] mouse events in custom behaviours is globalized

elmigo
Registered User
Quote
2018-12-24 15:18:20

when i using built-in behaviour "when clicked do someting" then event triggered when i click on object

when i using my own behaviour like this

behavior_Test.prototype.onMouseEvent = function(mouseEvent, mouseWheelDelta)
{
print('mouse'+mouseEvent);
}


all types of events (move,clicks,wheel) triggered always. indepeded i click this object or something else

objects with attached events handlers must get events if event occures for this object only not for whole scene

if i will needed global handler then i will attach behaviour to root


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "I?ternational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact