public MoveTracker(PSMove move) { tracker = new PSMoveTracker(); while(tracker.enable(move) != Status.Tracker_CALIBRATED); tracker.set_auto_update_leds(move,1); image = tracker.get_image(); }
public static string psmove_get_serial(PSMove move) { string ret = psmoveapi_csharpPINVOKE.psmove_get_serial(PSMove.getCPtr(move)); return ret; }
public static SWIGTYPE_p_float psmove_fusion_get_modelview_matrix(PSMoveFusion fusion, PSMove move) { IntPtr cPtr = psmoveapi_csharpPINVOKE.psmove_fusion_get_modelview_matrix(PSMoveFusion.getCPtr(fusion), PSMove.getCPtr(move)); SWIGTYPE_p_float ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_float(cPtr, false); return ret; }
public static void psmove_dump_calibration(PSMove move) { psmoveapi_csharpPINVOKE.psmove_dump_calibration(PSMove.getCPtr(move)); }
public static ConnectionType psmove_connection_type(PSMove move) { ConnectionType ret = (ConnectionType)psmoveapi_csharpPINVOKE.psmove_connection_type(PSMove.getCPtr(move)); return ret; }
public static int psmove_tracker_update(PSMoveTracker tracker, PSMove move) { int ret = psmoveapi_csharpPINVOKE.psmove_tracker_update(PSMoveTracker.getCPtr(tracker), PSMove.getCPtr(move)); return ret; }
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 int psmove_tracker_get_position(PSMoveTracker tracker, PSMove move, SWIGTYPE_p_float x, SWIGTYPE_p_float y, SWIGTYPE_p_float radius) { int ret = psmoveapi_csharpPINVOKE.psmove_tracker_get_position(PSMoveTracker.getCPtr(tracker), PSMove.getCPtr(move), SWIGTYPE_p_float.getCPtr(x), SWIGTYPE_p_float.getCPtr(y), SWIGTYPE_p_float.getCPtr(radius)); return ret; }
public static int psmove_poll(PSMove move) { int ret = psmoveapi_csharpPINVOKE.psmove_poll(PSMove.getCPtr(move)); return ret; }
public static PSMove_Bool psmove_pair_custom(PSMove move, string btaddr_string) { PSMove_Bool ret = (PSMove_Bool)psmoveapi_csharpPINVOKE.psmove_pair_custom(PSMove.getCPtr(move), btaddr_string); return ret; }
public static PSMove_Bool psmove_pair(PSMove move) { PSMove_Bool ret = (PSMove_Bool)psmoveapi_csharpPINVOKE.psmove_pair(PSMove.getCPtr(move)); return ret; }
public static PSMove_Bool psmove_has_calibration(PSMove move) { PSMove_Bool ret = (PSMove_Bool)psmoveapi_csharpPINVOKE.psmove_has_calibration(PSMove.getCPtr(move)); return ret; }
public static byte psmove_get_trigger(PSMove move) { byte ret = psmoveapi_csharpPINVOKE.psmove_get_trigger(PSMove.getCPtr(move)); return ret; }
public static float psmove_get_temperature_in_celsius(PSMove move) { float ret = psmoveapi_csharpPINVOKE.psmove_get_temperature_in_celsius(PSMove.getCPtr(move)); return ret; }
public static int psmove_get_temperature(PSMove move) { int ret = psmoveapi_csharpPINVOKE.psmove_get_temperature(PSMove.getCPtr(move)); return ret; }
public static PSMove_Bool psmove_tracker_get_auto_update_leds(PSMoveTracker tracker, PSMove move) { PSMove_Bool ret = (PSMove_Bool)psmoveapi_csharpPINVOKE.psmove_tracker_get_auto_update_leds(PSMoveTracker.getCPtr(tracker), PSMove.getCPtr(move)); return ret; }
public static int psmove_tracker_get_color(PSMoveTracker tracker, PSMove move, SWIGTYPE_p_unsigned_char r, SWIGTYPE_p_unsigned_char g, SWIGTYPE_p_unsigned_char b) { int ret = psmoveapi_csharpPINVOKE.psmove_tracker_get_color(PSMoveTracker.getCPtr(tracker), PSMove.getCPtr(move), SWIGTYPE_p_unsigned_char.getCPtr(r), SWIGTYPE_p_unsigned_char.getCPtr(g), SWIGTYPE_p_unsigned_char.getCPtr(b)); return ret; }
public static void psmove_reset_orientation(PSMove move) { psmoveapi_csharpPINVOKE.psmove_reset_orientation(PSMove.getCPtr(move)); }
public static Status psmove_tracker_get_status(PSMoveTracker tracker, PSMove move) { Status ret = (Status)psmoveapi_csharpPINVOKE.psmove_tracker_get_status(PSMoveTracker.getCPtr(tracker), PSMove.getCPtr(move)); return ret; }
public static void psmove_save_magnetometer_calibration(PSMove move) { psmoveapi_csharpPINVOKE.psmove_save_magnetometer_calibration(PSMove.getCPtr(move)); }
public static int psmove_tracker_set_camera_color(PSMoveTracker tracker, PSMove move, byte r, byte g, byte b) { int ret = psmoveapi_csharpPINVOKE.psmove_tracker_set_camera_color(PSMoveTracker.getCPtr(tracker), PSMove.getCPtr(move), r, g, b); return ret; }
public static void psmove_set_leds(PSMove move, byte r, byte g, byte b) { psmoveapi_csharpPINVOKE.psmove_set_leds(PSMove.getCPtr(move), r, g, b); }
public static PSMove_Update_Result psmove_update_leds(PSMove move) { PSMove_Update_Result ret = (PSMove_Update_Result)psmoveapi_csharpPINVOKE.psmove_update_leds(PSMove.getCPtr(move)); return ret; }
public static void psmove_set_rate_limiting(PSMove move, PSMove_Bool enabled) { psmoveapi_csharpPINVOKE.psmove_set_rate_limiting(PSMove.getCPtr(move), (int)enabled); }
public static void psmove_disconnect(PSMove move) { psmoveapi_csharpPINVOKE.psmove_disconnect(PSMove.getCPtr(move)); }
public static void psmove_set_rumble(PSMove move, byte rumble) { psmoveapi_csharpPINVOKE.psmove_set_rumble(PSMove.getCPtr(move), rumble); }
public static void psmove_enable_orientation(PSMove move, PSMove_Bool enabled) { psmoveapi_csharpPINVOKE.psmove_enable_orientation(PSMove.getCPtr(move), (int)enabled); }
public static void psmove_tracker_disable(PSMoveTracker tracker, PSMove move) { psmoveapi_csharpPINVOKE.psmove_tracker_disable(PSMoveTracker.getCPtr(tracker), PSMove.getCPtr(move)); }
public static void psmove_fusion_get_position(PSMoveFusion fusion, PSMove move, SWIGTYPE_p_float x, SWIGTYPE_p_float y, SWIGTYPE_p_float z) { psmoveapi_csharpPINVOKE.psmove_fusion_get_position(PSMoveFusion.getCPtr(fusion), PSMove.getCPtr(move), SWIGTYPE_p_float.getCPtr(x), SWIGTYPE_p_float.getCPtr(y), SWIGTYPE_p_float.getCPtr(z)); }
public static Status psmove_tracker_enable_with_color(PSMoveTracker tracker, PSMove move, byte r, byte g, byte b) { Status ret = (Status)psmoveapi_csharpPINVOKE.psmove_tracker_enable_with_color(PSMoveTracker.getCPtr(tracker), PSMove.getCPtr(move), r, g, b); return ret; }