cc.inputManager.setAccelerometerEnabled deprecated in 2.0, what to use?

cc.inputManager.setAccelerometerEnabled deprecated in 2.0, what to use?
0.0 0

#1

Hi, I’m testing 1.8.2rc2 and got a warning saying:

“The ‘cc.inputManager’ will be removed in v2.0, please use ‘cc.systemEvent’ instead. :cold_sweat:

But I can’t see any method on cc.systemEvent related to Accelerometer so I don’t know how to activate it using cc.systemEvent. Anybody can help, please?

@slackmoehrle, do you know how to .setAccelerometerEnabled(true) with cc.systemEvent?


#2

Any clue on this? @slackmoehrle @jare?


#3

I need to yield to @jare on this. I will ping him.


#4

Just cc.systemEvent.setAccelerometerEnabled(true) is OK