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;
}
}