Forum Discussion
bdeschryver
12 years agoExplorer
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 !
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
- drashHeroic ExplorerI 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. - bdeschryverExplorerthank you !
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 8 years ago