private void textboxJoystickGrab_Enter(object sender, EventArgs e) {
if (!radiobuttonJoystick.Checked)
{
textboxJoystickGrab.Text = Interface.GetInterfaceString("controls_selection_keyboard_assignment_grabbing");
textboxJoystickGrab.BackColor = Color.Crimson;
textboxJoystickGrab.ForeColor = Color.White;
KeyGrab = true;
return;
}
bool FullAxis = false;
if (this.Tag == null & listviewControls.SelectedIndices.Count == 1) {
int j = listviewControls.SelectedIndices[0];
if (Interface.CurrentControls[j].InheritedType == Interface.CommandType.AnalogFull) {
FullAxis = true;
}
}
if (FullAxis) {
textboxJoystickGrab.Text = Interface.GetInterfaceString("controls_selection_joystick_assignment_grab_fullaxis");
} else {
textboxJoystickGrab.Text = Interface.GetInterfaceString("controls_selection_joystick_assignment_grab_normal");
}
textboxJoystickGrab.BackColor = Color.Crimson;
textboxJoystickGrab.ForeColor = Color.White;
}