Turning Accelerometer on off with scripts?

I turn off the accelerometer off in AppController.mm by setting the accelerometer freq to 0 to gain about 10-15 FPS. I think I know the answer to this questions (no), but I’m going to ask anyway. is it possible to turn the accelerometer on and off with scripts in the game? I’d like to turn it off, but only turn it on when needed?

Thanks,

You can, but you’ll need to use call through to native code.

Thanks, would you happen to have a link to where I can find more info on that to learn how to do it?