예제 #1
0
 static void OnNextBeginDown(InputTarget target, InputArgs args)
 {
     if (target.IsBeginDownAvailable())
     {
         target.BeginDown(args);
     }
 }
예제 #2
0
 public InputArgsObserver(InputTarget target, Action <InputTarget, InputArgs> onNext)
 {
     _target = target;
     _onNext = onNext;
 }
예제 #3
0
        private static IDisposable ConnectBeginDown(InputSource source, InputTarget target)
        {
            var observer = new InputArgsObserver(target, OnNextBeginDown);

            return(source.BeginDown.Subscribe(observer));