Forum Discussion

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

OVR lib : What is the code for pressing SPACE ?

Hey guys,

I am analyzing the code of the Unity scripts provided with the Rift, and I can't find the code describing the display of the menu when pressing 'space'.
If I deactivate the OVR Main Menu script, it does not appear when pressing space; but in all OVR scripts, there is no mention of (Input.GetKeyDown...) which relates to pressing space...

Could you tell me where to find it ?


Thanks !

2 Replies

Replies have been turned off for this discussion
  • drash's avatar
    drash
    Heroic Explorer
    I ran into this one a while ago myself. Kept searching for KeyCode.Space. Then I realize they did it differently for this bit:

    	void GUIShowVRVariables()
    {
    bool SpaceHit = Input.GetKey("space");


    Hope that helps.