Пример #1
0
        public void LatchMultitrackPlayerInput(IController playerSource, MultitrackRewiringControllerAdapter rewiredSource)
        {
            if (_multiTrack.IsActive)
            {
                rewiredSource.PlayerSource     = 1;
                rewiredSource.PlayerTargetMask = 1 << _multiTrack.CurrentPlayer;
                if (_multiTrack.RecordAll)
                {
                    rewiredSource.PlayerTargetMask = unchecked ((int)0xFFFFFFFF);
                }
            }
            else
            {
                rewiredSource.PlayerSource = -1;
            }

            MovieControllerAdapter.LatchPlayerFromSource(rewiredSource, _multiTrack.CurrentPlayer);
        }
Пример #2
0
        private void LatchMultitrackPlayerInput(MultitrackRewiringControllerAdapter rewiredSource)
        {
            if (MultiTrack.IsActive)
            {
                rewiredSource.PlayerSource     = 1;
                rewiredSource.PlayerTargetMask = 1 << MultiTrack.CurrentPlayer;
                if (MultiTrack.RecordAll)
                {
                    rewiredSource.PlayerTargetMask = unchecked ((int)0xFFFFFFFF);
                }

                if (Movie.InputLogLength > Global.Emulator.Frame)
                {
                    var input = Movie.GetInputState(Global.Emulator.Frame);
                    MovieControllerAdapter.LatchFromSource(input);
                }

                MovieControllerAdapter.LatchPlayerFromSource(rewiredSource, MultiTrack.CurrentPlayer);
            }
        }
Пример #3
0
		public void LatchMultitrackPlayerInput(IController playerSource, MultitrackRewiringControllerAdapter rewiredSource)
		{
			if (_multiTrack.IsActive)
			{
				rewiredSource.PlayerSource = 1;
				rewiredSource.PlayerTargetMask = 1 << _multiTrack.CurrentPlayer;
				if (_multiTrack.RecordAll)
				{
					rewiredSource.PlayerTargetMask = unchecked((int)0xFFFFFFFF);
				}
			}
			else
			{
				rewiredSource.PlayerSource = -1;
			}

			MovieControllerAdapter.LatchPlayerFromSource(rewiredSource, _multiTrack.CurrentPlayer);
		}
Пример #4
0
		public void LatchMultitrackPlayerInput(IController playerSource, MultitrackRewiringControllerAdapter rewiredSource)
		{
			if (MultiTrack.IsActive)
			{
				rewiredSource.PlayerSource = 1;
				rewiredSource.PlayerTargetMask = 1 << MultiTrack.CurrentPlayer;
				if (MultiTrack.RecordAll)
				{
					rewiredSource.PlayerTargetMask = unchecked((int)0xFFFFFFFF);
				}

				if (Movie.InputLogLength > Global.Emulator.Frame)
				{
					var input = Movie.GetInputState(Global.Emulator.Frame);
					MovieControllerAdapter.LatchFromSource(input);
				}

				MovieControllerAdapter.LatchPlayerFromSource(rewiredSource, MultiTrack.CurrentPlayer);
			}
		}