Ejemplo n.º 1
0
        public void BindAction <T1, T2, T3>(string InActionName, InputEvent InEvent, Action <T1, T2, T3> InHandler, T1 _param1, T2 _param2, T3 _param3)
        {
            NativeActionWithKeySignature _proxy = new NativeActionWithKeySignature((string InKey) =>
            {
                InHandler(_param1, _param2, _param3);
            });

            delegateRefs.Add(_proxy);
            IONativeWrapper.BindAction(this.ID, InActionName, (int)InEvent, _proxy);
        }
Ejemplo n.º 2
0
        public void BindKey(Key InKey, InputEvent InEvent, Action InHandler)
        {
            NativeActionSignature _proxy = new NativeActionSignature(() =>
            {
                InHandler();
            });

            delegateRefs.Add(_proxy);
            IONativeWrapper.BindKey(this.ID, InKey, (int)InEvent, _proxy);
        }
Ejemplo n.º 3
0
        public void BindAction(string InActionName, InputEvent InEvent, Action <Key> InHandler)
        {
            NativeActionWithKeySignature _proxy = new NativeActionWithKeySignature((string InKey) =>
            {
                InHandler(InKey);
            });

            delegateRefs.Add(_proxy);
            IONativeWrapper.BindAction(this.ID, InActionName, (int)InEvent, _proxy);
        }
Ejemplo n.º 4
0
        /**
         *
         * Bind Axis
         *
         */
        public void BindAxis(string InAxisName, Action <float> InHandler)
        {
            NativeAxisSignature _proxy = new NativeAxisSignature((float InVal) =>
            {
                InHandler(InVal);
            });

            delegateRefs.Add(_proxy);
            IONativeWrapper.BindAxis(this.ID, InAxisName, _proxy);
        }
Ejemplo n.º 5
0
 public float GetKeyDownDuration(Key InKey)
 {
     return(IONativeWrapper.GetKeyDownDuration(this.ID, InKey));
 }
Ejemplo n.º 6
0
 public float GetAxisKey(Key InKey)
 {
     return(IONativeWrapper.GetAxisKey(this.ID, InKey));
 }
Ejemplo n.º 7
0
 public float GetAxis(string InAxisName)
 {
     return(IONativeWrapper.GetAxis(this.ID, InAxisName));
 }
Ejemplo n.º 8
0
 public bool GetKeyUp(Key InKey)
 {
     return(IONativeWrapper.GetKeyUp(this.ID, InKey));
 }
Ejemplo n.º 9
0
 public bool GetKey(string InKey)
 {
     return(IONativeWrapper.GetKey(this.ID, InKey));
 }
Ejemplo n.º 10
0
 public int SetDeviceDO(byte[] InStatus)
 {
     return(IONativeWrapper.SetDOAll(this.ID, InStatus));
 }
Ejemplo n.º 11
0
 public int SetDeviceDO(Key InKey, byte InStatus)
 {
     return(IONativeWrapper.SetDOSingle(this.ID, InKey, InStatus));
 }
Ejemplo n.º 12
0
 public int GetDeviceDO(byte[] DOStatus)
 {
     return(IONativeWrapper.GetDOAll(this.ID, DOStatus));
 }
Ejemplo n.º 13
0
 public byte GetDeviceDO(Key InKey)
 {
     return(IONativeWrapper.GetDOSingle(this.ID, InKey));
 }
Ejemplo n.º 14
0
 public static void ClearAllBingings()
 {
     IONativeWrapper.ClearAllBindings();
 }
Ejemplo n.º 15
0
 public static void Update()
 {
     IONativeWrapper.Query();
 }
Ejemplo n.º 16
0
 public static int UnLoad()
 {
     return(IONativeWrapper.UnLoad());
 }