private void DecodeTwoFingerTapGesture(ref Win32.GESTUREINFO gestureInfo) { TwoFingerTapGestureEventArgs args = new TwoFingerTapGestureEventArgs(); switch (gestureInfo.dwFlags) { case Win32.GF_BEGIN: { args.state = GestureState.Begin; } break; case Win32.GF_END: { args.state = GestureState.End; } break; } args.distance = (int)(gestureInfo.ullArguments & Win32.ULL_ARGUMENTS_BIT_MASK); args.ptCenter.X = gestureInfo.ptsLocation.X; args.ptCenter.Y = gestureInfo.ptsLocation.Y; if (TwoFingerTapEventHandler != null) { TwoFingerTapEventHandler(this, args); } }
private void DecodeTwoFingerTapGesture(ref Win32.GESTUREINFO gestureInfo) { TwoFingerTapGestureEventArgs e = new TwoFingerTapGestureEventArgs(); switch (gestureInfo.dwFlags) { case 1: e.state = GestureState.Begin; break; case 4: e.state = GestureState.End; break; } e.distance = (int)(((ulong)gestureInfo.ullArguments) & 0xffffffffL); e.ptCenter.X = gestureInfo.ptsLocation.X; e.ptCenter.Y = gestureInfo.ptsLocation.Y; if (this.TwoFingerTapEventHandler != null) { this.TwoFingerTapEventHandler(this, e); } }
private void DecodeTwoFingerTapGesture(ref Win32.GESTUREINFO gestureInfo) { TwoFingerTapGestureEventArgs e = new TwoFingerTapGestureEventArgs(); switch (gestureInfo.dwFlags) { case 1: e.state = GestureState.Begin; break; case 4: e.state = GestureState.End; break; } e.distance = (int) (((ulong) gestureInfo.ullArguments) & 0xffffffffL); e.ptCenter.X = gestureInfo.ptsLocation.X; e.ptCenter.Y = gestureInfo.ptsLocation.Y; if (this.TwoFingerTapEventHandler != null) { this.TwoFingerTapEventHandler(this, e); } }