Imagination PowerVR SDK Blog

Accellerometer with PowerVR sdk and iphone


Hello, I’m trying to access the accellerometer with the power vr sdk on iphone and haven’t had success. I found the variables but can’t access them ( ->mvec3Accell[] ) in the render loop.

I have also tried to receive the touch events but they don’t seem to be integrated properly. i.e. the touchStart variable is not constantly updating the m_eKeyMap… vars with the same functionality(renews value causing the touchesEnded event.

Any ideas on achieving the iphone sdk functionality correctly?

Thanks for ur help :slight_smile: