protected override bool startDevice() { Debug.Log(manager != null); Debug.Log(manager.isInitialized()); Debug.Log(deviceName != null); if (manager && (true || manager.isInitialized()) && deviceName != null) { Debug.Log("::VRPNForceFeedback:: Initializing"); // Register Force Feedback Device VRPNForceFeedbackInit(deviceName); initialized = true; return(true); } return(false); }
// Copied from UART VRPN wrapper // It is worth noting that VRPNTrackerStart must be called every frame protected override bool startDevice() { if (manager && manager.isInitialized() && deviceName != null) { // Register Tracker Device VRPNButtonStart(deviceName, maxNumberOfReports); initialized = true; return(true); } return(false); }
protected override bool startDevice() { if (manager && manager.isInitialized() && deviceName != null) { // Register Analog Device VRPNAnalogStart(deviceName); Debug.Log("VRPNAnalogController initialized"); initialized = true; return(true); } return(false); }
public static void VRPNM(int a) { GUIMoleculeController.showVRPNMenu = LoadTypeGUI.SetTitleExit("VRPN Client"); /* * Device configuration section */ if (vrpnManagerScript && vrpnManagerScript.isInitialized()) { vrpnManagerScript.renderDevicesGUI(); } GUILayout.Space(20); /* * Server connection section */ if (!omniConnected && GUILayout.Button("Omni@localhost:3884")) { Debug.Log("Adding device"); omniConnected = true; vrpnManagerScript.addDevice("Omni@localhost:3884", VRPNDeviceType.Phantom); Debug.Log("Omni@localhost added"); } if (!mouseConnected && GUILayout.Button("device0@localhost")) { Debug.Log("Adding device"); mouseConnected = true; vrpnManagerScript.addDevice("device0@localhost", VRPNDeviceType.Mouse3DConnexion); Debug.Log("device0@localhost added"); } GUI.enabled = true; GUI.DragWindow(); }