piface-node icon indicating copy to clipboard operation
piface-node copied to clipboard

Emit events directly from c++ code?

Open darrylhodgins opened this issue 12 years ago • 1 comments

Investigate whether it's possible for the C++ code to directly emit events.

darrylhodgins avatar Sep 30 '13 06:09 darrylhodgins

I am not familiar with NAN, how to emit an event from there, or to pass in a js callback that emits the event

However, this seems quite handy for avoiding the active loop: https://github.com/piface/libpifacedigital/blob/master/src/pifacedigital.h#L212

h0ru5 avatar Jun 05 '15 12:06 h0ru5