Screen Space Event Type of mouse drag

454 views
Skip to first unread message

Mohan Rajpoot

unread,
Feb 12, 2014, 1:18:04 AM2/12/14
to cesiu...@googlegroups.com
Hi Guys,
In Screen Space Event Type events I need mouse left click drag and mouse right click drag.
Is it possible ? 
How can I use mouse drag events in Screen Space Type Handler .

thanks and regards,
mohan

Mohan Rajpoot

unread,
Feb 12, 2014, 1:47:07 AM2/12/14
to cesiu...@googlegroups.com
More elaborating my post,
I am implementing, whenever camera is very close to the object then object will convert to 3d Model. And if camera is too far to
object then object will convert to 2d icon. For this, I have to use MOUSE_DRAG events in my code. But in Screen Space Event Type , there
 is no MOUSE_DRAG events. For that purpose, what can i do ?

Daniel Bagnell

unread,
Feb 18, 2014, 3:46:01 PM2/18/14
to cesiu...@googlegroups.com
Hi Mojan,

Checkout CameraEventAggregator and CameraEventType. It aggregates multiple mouse events into single events. For example, there would be a single event for combining mouse left down, mouse move, and mouse up events. This class is probably hard to find because it is poorly named, but we only use it for moving the camera based on user input.

Regards,
Dan
Reply all
Reply to author
Forward
0 new messages