예제 #1
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);
        }
예제 #2
0
 public static extern int BindKey([MarshalAs(UnmanagedType.BStr)] string InDeviceName, [MarshalAs(UnmanagedType.BStr)] string InKeyName, int InKeyEvent, NativeActionSignature InHandler);