Event function callbacks for digital and analog events

0 views
Skip to first unread message

Doug McCorkle

unread,
Feb 29, 2012, 9:34:12 AM2/29/12
to vrjuggl...@googlegroups.com
Hey Patrick,

When are the function callbacks processed in the VR Juggler event loop for digital, analog, and KBM events? I realize for the realtime setting they would be processed as they are generated but what about for the gadget::event::synchronized_tag setting? If you could point me to the location in the code where this happens that would be great too. Thanks for the help.

Doug

Patrick Hartling

unread,
Feb 29, 2012, 4:42:13 PM2/29/12
to vrjuggl...@googlegroups.com
On Feb 29, 2012, at 8:34 AM, Doug McCorkle wrote:

> Hey Patrick,
>
> When are the function callbacks processed in the VR Juggler event loop for digital, analog, and KBM events? I realize for the realtime setting they would be processed as they are generated but what about for the gadget::event::synchronized_tag setting? If you could point me to the location in the code where this happens that would be great too. Thanks for the help.


There is a class called gadget::EventEmitter that is responsible for that. The gadget::InputManager singleton owns it, and synchronized event emission happens in gadget::InputManager::updateAllDevices(). See line 605 of modules/gadgeteer/gadget/InputManager.cpp.

-Patrick


--
Patrick L. Hartling
Senior Software Engineer, Priority 5
http://www.priority5.com/

Reply all
Reply to author
Forward
0 new messages