Example #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);
        }
Example #2
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);
        }
Example #3
0
 public static extern int BindAction([MarshalAs(UnmanagedType.BStr)] string InDeviceName, [MarshalAs(UnmanagedType.BStr)] string InActionName, int InKeyEvent, NativeActionWithKeySignature InputHandler);