}
protected void joyP0P1DeviceAction() {
if (refreshInProgress) return;
if (joyP0Device.isEnabled()) {
DeviceOption opt0 = (DeviceOption) joyP0Device.getSelectedItem();
Parameters.JOY_P0_DEVICE = opt0 != null ? opt0.device : Parameters.JOY_DEVICE_AUTO;
}
if (joyP1Device.isEnabled()) {
DeviceOption opt1 = (DeviceOption) joyP1Device.getSelectedItem();
Parameters.JOY_P1_DEVICE = opt1 != null ? opt1.device : Parameters.JOY_DEVICE_AUTO;
}
room.joystickControls().start();
refreshJoysticks();
}