Exemplo n.º 1
0
        // Bind a delegate to a touch input.
        public void BindTouch(InputEventType inputEventType, TouchInputCallback callback)
        {
            if (IsDestroyedOrPendingKill)
            {
                throw new UnrealObjectDestroyedException("Trying to bind touch input on destroyed input component");
            }
            if (null == callback)
            {
                throw new ArgumentNullException("callback");
            }
            UnrealObject targetObj = callback.Target as UnrealObject;

            RegisterTouchInputCallback(NativeObject, targetObj.NativeObject, inputEventType, callback);
        }
Exemplo n.º 2
0
 private extern static void RegisterTouchInputCallback(IntPtr nativeComponentPointer, IntPtr nativeTargetObjectPointer, InputEventType inputEventType, TouchInputCallback callback);