static void n_OnAccelerometerData_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Vector3_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, long p1, IntPtr native_p2)
 {
     global::Com.Thalmic.Myo.IDeviceListener __this = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.IDeviceListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Thalmic.Myo.Myo             p0     = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.Myo> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Com.Thalmic.Myo.Vector3         p2     = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.Vector3> (native_p2, JniHandleOwnership.DoNotTransfer);
     __this.OnAccelerometerData(p0, p1, p2);
 }
Esempio n. 2
0
 static void n_OnOrientationData_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Quaternion_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, long p1, IntPtr native_p2)
 {
     global::Com.Thalmic.Myo.AbstractDeviceListener __this = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.AbstractDeviceListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Thalmic.Myo.Myo        p0 = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.Myo> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Com.Thalmic.Myo.Quaternion p2 = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.Quaternion> (native_p2, JniHandleOwnership.DoNotTransfer);
     __this.OnOrientationData(p0, p1, p2);
 }
 static void n_OnPose_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Pose_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, long p1, IntPtr native_p2)
 {
     global::Com.Thalmic.Myo.IDeviceListener __this = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.IDeviceListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Thalmic.Myo.Myo             p0     = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.Myo> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Com.Thalmic.Myo.Pose            p2     = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.Pose> (native_p2, JniHandleOwnership.DoNotTransfer);
     __this.OnPose(p0, p1, p2);
 }
 public ArmRecognizedEventArgs(global::Com.Thalmic.Myo.Myo p0, long p1, global::Com.Thalmic.Myo.Arm p2, global::Com.Thalmic.Myo.XDirection p3)
 {
     this.p0 = p0;
     this.p1 = p1;
     this.p2 = p2;
     this.p3 = p3;
 }
 public void OnPair(global::Com.Thalmic.Myo.Myo p0, long p1)
 {
     if (id_onPair_Lcom_thalmic_myo_Myo_J == IntPtr.Zero)
     {
         id_onPair_Lcom_thalmic_myo_Myo_J = JNIEnv.GetMethodID(class_ref, "onPair", "(Lcom/thalmic/myo/Myo;J)V");
     }
     JNIEnv.CallVoidMethod(Handle, id_onPair_Lcom_thalmic_myo_Myo_J, new JValue(p0), new JValue(p1));
 }
 public void OnOrientationData(global::Com.Thalmic.Myo.Myo p0, long p1, global::Com.Thalmic.Myo.Quaternion p2)
 {
     if (id_onOrientationData_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Quaternion_ == IntPtr.Zero)
     {
         id_onOrientationData_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Quaternion_ = JNIEnv.GetMethodID(class_ref, "onOrientationData", "(Lcom/thalmic/myo/Myo;JLcom/thalmic/myo/Quaternion;)V");
     }
     JNIEnv.CallVoidMethod(Handle, id_onOrientationData_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Quaternion_, new JValue(p0), new JValue(p1), new JValue(p2));
 }
 public void OnGyroscopeData(global::Com.Thalmic.Myo.Myo p0, long p1, global::Com.Thalmic.Myo.Vector3 p2)
 {
     if (id_onGyroscopeData_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Vector3_ == IntPtr.Zero)
     {
         id_onGyroscopeData_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Vector3_ = JNIEnv.GetMethodID(class_ref, "onGyroscopeData", "(Lcom/thalmic/myo/Myo;JLcom/thalmic/myo/Vector3;)V");
     }
     JNIEnv.CallVoidMethod(Handle, id_onGyroscopeData_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Vector3_, new JValue(p0), new JValue(p1), new JValue(p2));
 }
 public void OnPose(global::Com.Thalmic.Myo.Myo p0, long p1, global::Com.Thalmic.Myo.Pose p2)
 {
     if (id_onPose_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Pose_ == IntPtr.Zero)
     {
         id_onPose_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Pose_ = JNIEnv.GetMethodID(class_ref, "onPose", "(Lcom/thalmic/myo/Myo;JLcom/thalmic/myo/Pose;)V");
     }
     JNIEnv.CallVoidMethod(Handle, id_onPose_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Pose_, new JValue(p0), new JValue(p1), new JValue(p2));
 }
 public void OnArmRecognized(global::Com.Thalmic.Myo.Myo p0, long p1, global::Com.Thalmic.Myo.Arm p2, global::Com.Thalmic.Myo.XDirection p3)
 {
     if (id_onArmRecognized_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Arm_Lcom_thalmic_myo_XDirection_ == IntPtr.Zero)
     {
         id_onArmRecognized_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Arm_Lcom_thalmic_myo_XDirection_ = JNIEnv.GetMethodID(class_ref, "onArmRecognized", "(Lcom/thalmic/myo/Myo;JLcom/thalmic/myo/Arm;Lcom/thalmic/myo/XDirection;)V");
     }
     JNIEnv.CallVoidMethod(Handle, id_onArmRecognized_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Arm_Lcom_thalmic_myo_XDirection_, new JValue(p0), new JValue(p1), new JValue(p2), new JValue(p3));
 }
 static void n_OnArmRecognized_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Arm_Lcom_thalmic_myo_XDirection_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, long p1, IntPtr native_p2, IntPtr native_p3)
 {
     global::Com.Thalmic.Myo.IDeviceListener __this = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.IDeviceListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Thalmic.Myo.Myo             p0     = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.Myo> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Com.Thalmic.Myo.Arm             p2     = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.Arm> (native_p2, JniHandleOwnership.DoNotTransfer);
     global::Com.Thalmic.Myo.XDirection      p3     = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.XDirection> (native_p3, JniHandleOwnership.DoNotTransfer);
     __this.OnArmRecognized(p0, p1, p2, p3);
 }
 public void OnRssi(global::Com.Thalmic.Myo.Myo p0, long p1, int p2)
 {
     if (id_onRssi_Lcom_thalmic_myo_Myo_JI == IntPtr.Zero)
     {
         id_onRssi_Lcom_thalmic_myo_Myo_JI = JNIEnv.GetMethodID(class_ref, "onRssi", "(Lcom/thalmic/myo/Myo;JI)V");
     }
     JNIEnv.CallVoidMethod(Handle, id_onRssi_Lcom_thalmic_myo_Myo_JI, new JValue(p0), new JValue(p1), new JValue(p2));
 }
#pragma warning restore 0649

        public void OnRssi(global::Com.Thalmic.Myo.Myo p0, long p1, int p2)
        {
            var __h = OnRssiHandler;

            if (__h != null)
            {
                __h(sender, new RssiEventArgs(p0, p1, p2));
            }
        }
#pragma warning restore 0649

        public void OnPair(global::Com.Thalmic.Myo.Myo p0, long p1)
        {
            var __h = OnPairHandler;

            if (__h != null)
            {
                __h(sender, new PairEventArgs(p0, p1));
            }
        }
#pragma warning restore 0649

        public void OnGyroscopeData(global::Com.Thalmic.Myo.Myo p0, long p1, global::Com.Thalmic.Myo.Vector3 p2)
        {
            var __h = OnGyroscopeDataHandler;

            if (__h != null)
            {
                __h(sender, new GyroscopeDataEventArgs(p0, p1, p2));
            }
        }
#pragma warning restore 0649

        public void OnOrientationData(global::Com.Thalmic.Myo.Myo p0, long p1, global::Com.Thalmic.Myo.Quaternion p2)
        {
            var __h = OnOrientationDataHandler;

            if (__h != null)
            {
                __h(sender, new OrientationDataEventArgs(p0, p1, p2));
            }
        }
#pragma warning restore 0649

        public void OnArmRecognized(global::Com.Thalmic.Myo.Myo p0, long p1, global::Com.Thalmic.Myo.Arm p2, global::Com.Thalmic.Myo.XDirection p3)
        {
            var __h = OnArmRecognizedHandler;

            if (__h != null)
            {
                __h(sender, new ArmRecognizedEventArgs(p0, p1, p2, p3));
            }
        }
#pragma warning restore 0649

        public void OnDisconnect(global::Com.Thalmic.Myo.Myo p0, long p1)
        {
            var __h = OnDisconnectHandler;

            if (__h != null)
            {
                __h(sender, new DisconnectEventArgs(p0, p1));
            }
        }
#pragma warning restore 0649

        public void OnPose(global::Com.Thalmic.Myo.Myo p0, long p1, global::Com.Thalmic.Myo.Pose p2)
        {
            var __h = OnPoseHandler;

            if (__h != null)
            {
                __h(sender, new PoseEventArgs(p0, p1, p2));
            }
        }
#pragma warning restore 0649

        public void OnArmLost(global::Com.Thalmic.Myo.Myo p0, long p1)
        {
            var __h = OnArmLostHandler;

            if (__h != null)
            {
                __h(sender, new ArmLostEventArgs(p0, p1));
            }
        }
Esempio n. 20
0
 public virtual void OnAccelerometerData(global::Com.Thalmic.Myo.Myo p0, long p1, global::Com.Thalmic.Myo.Vector3 p2)
 {
     if (id_onAccelerometerData_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Vector3_ == IntPtr.Zero)
     {
         id_onAccelerometerData_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Vector3_ = JNIEnv.GetMethodID(class_ref, "onAccelerometerData", "(Lcom/thalmic/myo/Myo;JLcom/thalmic/myo/Vector3;)V");
     }
     try {
         if (GetType() == ThresholdType)
         {
             JNIEnv.CallVoidMethod(Handle, id_onAccelerometerData_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Vector3_, new JValue(p0), new JValue(p1), new JValue(p2));
         }
         else
         {
             JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "onAccelerometerData", "(Lcom/thalmic/myo/Myo;JLcom/thalmic/myo/Vector3;)V"), new JValue(p0), new JValue(p1), new JValue(p2));
         }
     } finally {
     }
 }
Esempio n. 21
0
 public virtual void OnRssi(global::Com.Thalmic.Myo.Myo p0, long p1, int p2)
 {
     if (id_onRssi_Lcom_thalmic_myo_Myo_JI == IntPtr.Zero)
     {
         id_onRssi_Lcom_thalmic_myo_Myo_JI = JNIEnv.GetMethodID(class_ref, "onRssi", "(Lcom/thalmic/myo/Myo;JI)V");
     }
     try {
         if (GetType() == ThresholdType)
         {
             JNIEnv.CallVoidMethod(Handle, id_onRssi_Lcom_thalmic_myo_Myo_JI, new JValue(p0), new JValue(p1), new JValue(p2));
         }
         else
         {
             JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "onRssi", "(Lcom/thalmic/myo/Myo;JI)V"), new JValue(p0), new JValue(p1), new JValue(p2));
         }
     } finally {
     }
 }
Esempio n. 22
0
 public virtual void OnArmRecognized(global::Com.Thalmic.Myo.Myo p0, long p1, global::Com.Thalmic.Myo.Arm p2, global::Com.Thalmic.Myo.XDirection p3)
 {
     if (id_onArmRecognized_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Arm_Lcom_thalmic_myo_XDirection_ == IntPtr.Zero)
     {
         id_onArmRecognized_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Arm_Lcom_thalmic_myo_XDirection_ = JNIEnv.GetMethodID(class_ref, "onArmRecognized", "(Lcom/thalmic/myo/Myo;JLcom/thalmic/myo/Arm;Lcom/thalmic/myo/XDirection;)V");
     }
     try {
         if (GetType() == ThresholdType)
         {
             JNIEnv.CallVoidMethod(Handle, id_onArmRecognized_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Arm_Lcom_thalmic_myo_XDirection_, new JValue(p0), new JValue(p1), new JValue(p2), new JValue(p3));
         }
         else
         {
             JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "onArmRecognized", "(Lcom/thalmic/myo/Myo;JLcom/thalmic/myo/Arm;Lcom/thalmic/myo/XDirection;)V"), new JValue(p0), new JValue(p1), new JValue(p2), new JValue(p3));
         }
     } finally {
     }
 }
 public PoseEventArgs(global::Com.Thalmic.Myo.Myo p0, long p1, global::Com.Thalmic.Myo.Pose p2)
 {
     this.p0 = p0;
     this.p1 = p1;
     this.p2 = p2;
 }
 public PairEventArgs(global::Com.Thalmic.Myo.Myo p0, long p1)
 {
     this.p0 = p0;
     this.p1 = p1;
 }
 public OrientationDataEventArgs(global::Com.Thalmic.Myo.Myo p0, long p1, global::Com.Thalmic.Myo.Quaternion p2)
 {
     this.p0 = p0;
     this.p1 = p1;
     this.p2 = p2;
 }
 public GyroscopeDataEventArgs(global::Com.Thalmic.Myo.Myo p0, long p1, global::Com.Thalmic.Myo.Vector3 p2)
 {
     this.p0 = p0;
     this.p1 = p1;
     this.p2 = p2;
 }
 public DisconnectEventArgs(global::Com.Thalmic.Myo.Myo p0, long p1)
 {
     this.p0 = p0;
     this.p1 = p1;
 }
 public AccelerometerDataEventArgs(global::Com.Thalmic.Myo.Myo p0, long p1, global::Com.Thalmic.Myo.Vector3 p2)
 {
     this.p0 = p0;
     this.p1 = p1;
     this.p2 = p2;
 }
 public RssiEventArgs(global::Com.Thalmic.Myo.Myo p0, long p1, int p2)
 {
     this.p0 = p0;
     this.p1 = p1;
     this.p2 = p2;
 }
 static void n_OnDisconnect_Lcom_thalmic_myo_Myo_J(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, long p1)
 {
     global::Com.Thalmic.Myo.IDeviceListener __this = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.IDeviceListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Thalmic.Myo.Myo             p0     = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.Myo> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.OnDisconnect(p0, p1);
 }