MobileMobile | Continue
       
Nibiru VR Development Unity/Unreal SDK Unity button listener

Unity button listener

MArc Post time 2017-12-8 14:22 | Show all posts [Copy URL]
6 707
Dear,

how can I capture setup key pressed in unity. I need to detect when user exit application.

Thanks!
Reply

Use magic Report

Post time 2017-12-4 10:24 | Show all posts
If you read the development guide, you can find the info about it.
The button-press listener feature

SDK provides the inner API-- INibiruButtonListener.cs, through which you can monitor “Up, down, left, right”, “Return”, “OK” and the volume plus or minus button-press events in Nibiru VR.
Under Demo/DemoScene, we have provided a ButtonListener.cs demo, which can be seen under OnPressBack

NibiruVR_SDK_Unity Development Guide_2.0.7.pdf

1.65 MB, Downloads: 13

Post time 2017-12-5 00:20 | Show all posts
oahcfly replied at 2017-12-4 10:24
If you read the development guide, you can find the info about it.
The button-press listener feature ...

Thanks for the reply!

We need to listen whem user press N button. we try to capture with onpressback and not work.. we need to capture even when cloase app of application and close videoplayer with N button (close application)
Post time 2017-12-5 02:30 | Show all posts
I search in documentation and I can't see this option. It's possible?

Thanks!!!
Post time 2017-12-5 14:27 | Show all posts
MArc 发表于 2017-12-5 00:20
Thanks for the reply!

We need to listen whem user press N button. we try to capture with onpressb ...

now sdk not support to listen user press N button. press N button and show menu is a system behavior.
we do have api to listen it.
close application by N button, system will kill the application .so you can not capture it , because it kill your application's process.
Post time 2017-12-5 16:06 | Show all posts
Dear oahcfly,

thanks for your reply! And the last question. We can capture when de glasses inactivity?

Thanks for all!!!
Post time 2017-12-8 14:22 | Show all posts
MArc replied at 2017-12-5 16:06
Dear oahcfly,

thanks for your reply! And the last question. We can capture when de glasses inactivi ...

I do not understand "when de glasses inactivity?"
can you give some examples ? is it means like glasses reboot or shutdown or ???
You have to log in before you can reply Login | Register

Points Rules

!fastreply! Top !return_list!