Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Hyper_active's avatar
Hyper_active
Start Partner
12 years ago

How to remove in-game calibration menus?

Hi!

Quick question, anyone know how to remove all the key triggers that come with oculus? Especially the "c" key, because I want to use it to crouch, because for now when my character crouches I have that calibration menu that comes up at the same time.

I'm looking through the scripts now to see where it is... But if anyone knows the answer already... :)

Thanks!

Keep on Rifting.

AB

3 Replies

Replies have been turned off for this discussion
  • Anonymous's avatar
    Anonymous
    Easiest way to find this is open MonoDevelop. In the file browser on left, right click on Assembly-CSharp->OVR->Scripts and use Find in Files...

    Search for 'Get Key'.

    You'll find 'C' is bound in OVRCrossHair.cs.

    Many of the others are in OVRMainMenu.cs and OVRPlayerController.cs. I would like to see Oculus create a single script that can be instantiated (OVRControl) so the bindings can be controlled/enabled/disabled in the Editor without having to modify the scripts.

    ccs
  • "ccs" wrote:

    You'll find 'C' is bound in OVRCrossHair.cs.

    ccs



    Perfect! Thanks for the quick assistance.

    AB
  • Just a short update after trying a few things out, for those who would like to do the same thing.

    Removing
    if(Input.GetKeyDown (KeyCode.C))
    from line 204 in OVRCrossHair.cs makes quite a few glitches, and involves removing a lot of other lines to get things working smoothly.

    Removing
    UpdateFunctions += Crosshair.UpdateCrosshair;
    line 313 in OVRMainMenu.cs solved my issue without any glitches.

    Again, thanks for the help ccs!

    AB