ambiera home ambiera home

Ambiera Forum

Discussions, Help and Support.

Create a new account, Search, or Login:
Name:  Password:    
Ambiera Forum > CopperCube > Feature requests and bug reports
[BUG?] mouse events in custom behaviours is globalized
Author Text

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: "Interna?ional" (you are not logged in)


Text:

 

  

Forum 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


   





Software: Ambiera Light Forum. © 2008-2018 Nikolaus Gebhardt, Ambiera e.U.