Controlling Scene Camera using external IMU

I am having a IMU connected to device though USB, I want to control the scene camera using the input from it. I am using Babylon Native. For starters, I can read the IMU value, how to calibrate and map it to the scene camera. Similar to this PhotoDome with mobile Gyroscope - #15 by Z_J but cant be using inbuilt solution. I need to handle through event handler.

cc @BabylonNative and @PolygonalSun for inputs

You probably need to do something similar to what we are doing in NativeInput assuming the IMU is event based since it will most likely call back on a different thread than the JavaScript thread. You will need to take the values from native and use Node-API to expose the values to JavaScript. Then the JavaScript business logic can do what it wants with the data.