OpenBve.Menu.SetControlJoyCustomData C# (CSharp) Méthode

SetControlJoyCustomData() private méthode

private SetControlJoyCustomData ( int device, Interface component, int element, int dir ) : void
device int
component Interface
element int
dir int
Résultat void
		internal void SetControlJoyCustomData(int device, Interface.JoystickComponent component, int element, int dir)
		{
			if (isCustomisingControl && CustomControlIdx < Interface.CurrentControls.Length)
			{
				Interface.CurrentControls[CustomControlIdx].Method		= Interface.ControlMethod.Joystick;
				Interface.CurrentControls[CustomControlIdx].Device		= device;
				Interface.CurrentControls[CustomControlIdx].Component	= component;
				Interface.CurrentControls[CustomControlIdx].Element		= element;
				Interface.CurrentControls[CustomControlIdx].Direction	= dir;
				Interface.SaveControls(null);
				PopMenu();
				isCustomisingControl	= false;
			}
		}