virtual-world-framework / vwf

Virtual World Framework
https://virtual.wf
Other
142 stars 53 forks source link

Use property settings to attach mouse and touch events. #490

Closed youngca closed 9 years ago

youngca commented 9 years ago

For each kinetic object class, add properties of supportMouseEvents and supportTouchEvents. If these properties are true, then when the object is created and initialized, the mouse and/or touch events will be added.

@scottnc27603 @davideaster

scottnc27603 commented 9 years ago

We need to protect against having the events added more that one time. Maybe storing a value for each type in the shared node object would be a potential solution. Those flags could be added in createLocalNode in the model/kinetic.js and then all of the objects will get those values.

@youngca

youngca commented 9 years ago

Status of whether the mouse and/or touch events have been attached are stored in the shared node.

@scottnc27603 @davideaster

scottnc27603 commented 9 years ago

:+1: