private void Start() { PSMove_Bool init = PSMoveAPI.psmove_init(PSMoveAPI.PSMove_Version.PSMOVE_CURRENT_VERSION); if (init == PSMove_Bool.PSMove_True) { handle = PSMoveAPI.psmove_connect(); if (handle == System.IntPtr.Zero || PSMoveAPI.psmove_update_leds(handle) == 0) { Debug.LogError("Could not connect to default PSMove controller"); } else { Debug.Log("Connection established to default PSMove controller"); initDone = true; SetLED(Color.magenta); } } else { Debug.LogError("Could not init PSMove API"); } }
public static void psmove_tracker_set_auto_update_leds(PSMoveTracker tracker, PSMove move, PSMove_Bool auto_update_leds) { psmoveapi_csharpPINVOKE.psmove_tracker_set_auto_update_leds(PSMoveTracker.getCPtr(tracker), PSMove.getCPtr(move), (int)auto_update_leds); }
public static void psmove_tracker_enable_deinterlace(PSMoveTracker tracker, PSMove_Bool enabled) { psmoveapi_csharpPINVOKE.psmove_tracker_enable_deinterlace(PSMoveTracker.getCPtr(tracker), (int)enabled); }
public static void psmove_set_rate_limiting(PSMove move, PSMove_Bool enabled) { psmoveapi_csharpPINVOKE.psmove_set_rate_limiting(PSMove.getCPtr(move), (int)enabled); }
private static extern void psmove_tracker_enable_deinterlace(IntPtr tracker, PSMove_Bool enabled);
private static extern void psmove_tracker_set_auto_update_leds(IntPtr tracker, IntPtr move, PSMove_Bool auto_update_leds);
public static void psmove_tracker_enable_deinterlace(PSMoveTracker tracker, PSMove_Bool enabled) { PSMoveapiCsharpPinvoke.psmove_tracker_enable_deinterlace(PSMoveTracker.getCPtr(tracker), (int) enabled); }
public static extern void psmove_enable_orientation(IntPtr move, PSMove_Bool enable);
private static extern void psmove_enable_orientation(IntPtr move, PSMove_Bool enabled);
private static extern void psmove_set_rate_limiting(IntPtr move, PSMove_Bool enabled);
void Awake() { inited = psmove_init(PSMove_Version.PSMOVE_CURRENT_VERSION); }
public static extern void psmove_position_filter_update(ref PSMove_3AxisVector measured_position, PSMove_Bool was_tracked, IntPtr position_filter);
public static void psmove_enable_orientation(PSMove move, PSMove_Bool enabled) { PSMoveapiCsharpPinvoke.psmove_enable_orientation(PSMove.getCPtr(move), (int) enabled); }
public static void psmove_tracker_set_mirror(PSMoveTracker tracker, PSMove_Bool enabled) { PSMoveapiCsharpPinvoke.psmove_tracker_set_mirror(PSMoveTracker.getCPtr(tracker), (int) enabled); }
public static void psmove_tracker_set_mirror(PSMoveTracker tracker, PSMove_Bool enabled) { psmoveapi_csharpPINVOKE.psmove_tracker_set_mirror(PSMoveTracker.getCPtr(tracker), (int)enabled); }
public void enable_orientation(PSMove_Bool enable) { PSMoveapiCsharpPinvoke.psmove_enable_orientation(swigCPtr, (int) enable); }
public static void psmove_enable_orientation(PSMove move, PSMove_Bool enabled) { psmoveapi_csharpPINVOKE.psmove_enable_orientation(PSMove.getCPtr(move), (int)enabled); }
public static extern void psmove_enable_orientation(IntPtr move, PSMove_Bool enable);
public static extern void psmove_position_filter_update(ref PSMove_3AxisVector measured_position, PSMove_Bool was_tracked, IntPtr position_filter);
public static void psmove_set_rate_limiting(PSMove move, PSMove_Bool enabled) { PSMoveapiCsharpPinvoke.psmove_set_rate_limiting(PSMove.getCPtr(move), (int) enabled); }