Skip to content

Instantly share code, notes, and snippets.

@lyokato
Created May 22, 2018 17:42
Show Gist options
  • Save lyokato/7f42de0e9a08f40d4c508282aa828211 to your computer and use it in GitHub Desktop.
Save lyokato/7f42de0e9a08f40d4c508282aa828211 to your computer and use it in GitHub Desktop.
static OVRInput()
{
controllers = new List<OVRControllerBase>
{
#if UNITY_ANDROID && !UNITY_EDITOR
new OVRControllerGamepadAndroid(),
new OVRControllerTouchpad(),
new OVRControllerLTrackedRemote(),
new OVRControllerRTrackedRemote(),
#elif UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX
//new OVRControllerGamepadMac(),
new OVRControllerRTrackedRemote(),
#else
new OVRControllerGamepadPC(),
new OVRControllerTouch(),
new OVRControllerLTouch(),
new OVRControllerRTouch(),
new OVRControllerRemote(),
#endif
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment