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

SetControlKbdCustomData() private méthode

private SetControlKbdCustomData ( Key key, Interface keybMod ) : void
key Key
keybMod Interface
Résultat void
		internal void SetControlKbdCustomData(Key key, Interface.KeyboardModifier keybMod)
		{
			//Check that we are customising a key, and that our key is NOT the menu back key
			if (isCustomisingControl && key != MenuBackKey && CustomControlIdx < Interface.CurrentControls.Length)
			{
				Interface.CurrentControls[CustomControlIdx].Method = Interface.ControlMethod.Keyboard;
				Interface.CurrentControls[CustomControlIdx].Key = key;
				Interface.CurrentControls[CustomControlIdx].Modifier = keybMod;
				Interface.SaveControls(null);
			}
			PopMenu();
			isCustomisingControl	= false;
			
		}
		internal void SetControlJoyCustomData(int device, Interface.JoystickComponent component, int element, int dir)