Samsung / GearVRf

The GearVR framework(GearVRf) is an Open Source VR rendering library for application development on VR-supported Android devices.
http://www.gearvrf.org
Apache License 2.0
407 stars 217 forks source link

Override GearVR Headset Back Key Press #2017

Closed serarmatloob closed 5 years ago

serarmatloob commented 5 years ago

Hello,

A recent push to GearVRf seems to have broken the listening to Back Key press events of GearVR headset. It used to work by overriding onBackPressed() method, but now it doesn't at all. Any workaround to get the override capability of the back key? I am trying to map the back key so that it resets the view orientation on key press.

Thanks, Serar

liaxim commented 5 years ago

Are you using the snapshots or are you building yourself?

serarmatloob commented 5 years ago

I'm using snapshot: 4.0.1-SNAPSHOT

liaxim commented 5 years ago

It seems this is side-effect of using the new Oculus Mobile SDK.

serarmatloob commented 5 years ago

Thanks @liaxim for looking into this. Does that mean there is no fix for that or a way around it? How can I use an older version of Oculus Mobile SDK?

liaxim commented 5 years ago

There will be a fix. We just need to implement the back key handling according to the new SDK requirements.

serarmatloob commented 5 years ago

Ok thank you for confirming that. Will wait for the fix 👍

liaxim commented 5 years ago

Fixed by https://github.com/Samsung/GearVRf/pull/2019; the snapshot for the oculus support module has been updated.

liaxim commented 5 years ago

@serarmatloob Assuming it is all good. Let us know if otherwise.